Daily bump.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / decl9.C
bloba8d944c589db1e5d1a4ba7f00b10db19257e7463
1 // { dg-do assemble  }
2 // Build don't link
3 // Origin: batali@cogsci.ucsd.edu
4 // Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
6 typedef struct { } S;           // OK
7 typedef struct { };             // { dg-error "1:missing type-name" } Missing type-name
9 typedef union { } U;            // OK
10 typedef union { };              // { dg-error "1:missing type-name" } Missing type-name