Files
ispc/tests_errors/const-3.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
92 B
Plaintext

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