Add support for running tests that are expected to fail
Also add should-fail tests that exercise const and decl initializers
This commit is contained in:
9
tests_errors/const-3.ispc
Normal file
9
tests_errors/const-3.ispc
Normal file
@@ -0,0 +1,9 @@
|
||||
// Can't assign to type
|
||||
|
||||
struct Foo {
|
||||
int x;
|
||||
};
|
||||
|
||||
int func(const Foo f) {
|
||||
f.x = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user