Make sizeof on indeterminate arrays an error.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
native print(const char[] str);
|
||||
native printnum(num);
|
||||
|
||||
public main()
|
||||
{
|
||||
char[] egg = "!\n";
|
||||
return sizeof(egg);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
(7) : error 163: indeterminate array size in "sizeof" expression (symbol "egg")
|
||||
Reference in New Issue
Block a user