Files
ispc/tests_errors/const-4.ispc
Matt Pharr 79684a0bed Add support for running tests that are expected to fail
Also add should-fail tests that exercise const and decl
initializers
2011-11-14 08:45:41 -08:00

10 lines
91 B
Plaintext

// Can't assign to type
struct Foo {
int x;
};
int func(const int f) {
f -= 2;
}