Changeset f29d603
- Timestamp:
- Apr 15, 2019, 5:14:20 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 4e84ef7
- Parents:
- 1dda8de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/completeTypeError.cfa
r1dda8de rf29d603 5 5 forall(dtype T | sized(T)) void quux(T *); 6 6 7 struct A; 8 struct B {}; 7 struct A; // incomplete 8 struct B {}; // complete 9 9 10 10 int main() { 11 int * i;12 void * v;11 int * i; 12 void * v; 13 13 14 14 A * x; … … 32 32 // bad 33 33 *v; 34 *x; 34 *x; // ambiguous 35 35 foo(v); 36 36 baz(v); … … 52 52 void qux(T * y) { 53 53 // okay 54 *y; 54 55 bar(y); 55 56 qux(y); 56 *y;57 57 58 58 // bad
Note: See TracChangeset
for help on using the changeset viewer.