Issue errors if array dimensions are negative or too large to fit in 32 bits.
This commit is contained in:
7
tests_errors/array-dim-negative.ispc
Normal file
7
tests_errors/array-dim-negative.ispc
Normal file
@@ -0,0 +1,7 @@
|
||||
// Array dimension must be non-negative
|
||||
|
||||
struct foo {
|
||||
int x[-1];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user