gcc/testsuite/g++.old-deja/g++.other/decl9.C
raw| 1 | // { dg-do assemble } |
| 2 | // Build don't link |
| 3 | // Origin: [email protected] |
| 4 | // Contributed by Gabriel Dos Reis <[email protected]> |
| 5 | |
| 6 | typedef struct { } S; // OK |
| 7 | typedef struct { }; // { dg-error "1:missing type-name" } Missing type-name |
| 8 | |
| 9 | typedef union { } U; // OK |
| 10 | typedef union { }; // { dg-error "1:missing type-name" } Missing type-name |