summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/anon9.C
blob: a364db8e962d2b348b14c9000a6a00608ecc41eb (plain)
1
2
3
4
5
6
// { dg-do assemble  }
// Test that we properly diagnose an attempt to use an anonymous class
// in declaring an external function.

typedef const struct { int i; } T; // { dg-error "" } referenced below
void f (T* t);			// { dg-error "" } uses unnamed type