Files
ispc/tests_errors/deref-3.ispc
Matt Pharr 99a27fe241 Add support for forward declarations of structures.
Now a declaration like 'struct Foo;' can be used to establish the
name of a struct type, without providing a definition.  One can
pass pointers to such types around the system, but can't do much
else with them (as in C/C++).

Issue #125.
2012-04-16 06:27:21 -07:00

8 lines
141 B
Plaintext

// Member operator "->" can't be applied to non-pointer type "varying struct Foo"
struct Foo { int x; };
int func(Foo a) {
a->x = 0;
}