2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / decl9.C
blob9be187add862d4e560ac95669cfa43f410c4de76
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 "" } Missing type-name
9 typedef union { } U;            // OK
10 typedef union { };              // { dg-error "" } Missing type-name