1 // { dg-do assemble  }
2 // Build don't link
3 // Origin: batali@cogsci.ucsd.edu
4 // Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
5 
6 typedef struct { } S;           // OK
7 typedef struct { };             // { dg-error "" } Missing type-name
8 
9 typedef union { } U;            // OK
10 typedef union { };              // { dg-error "" } Missing type-name
11