blob: a364db8e962d2b348b14c9000a6a00608ecc41eb [file] [log] [blame]
// { 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