OSDN Git Service

* class.c (resolve_address_of_overloaded_function): Don't
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / decl9.C
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