OSDN Git Service

Implement DR 757: It's OK for a decl to use a type without linkage
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / anon9.C
index a364db8..f4b1923 100644 (file)
@@ -4,3 +4,8 @@
 
 typedef const struct { int i; } T; // { dg-error "" } referenced below
 void f (T* t);                 // { dg-error "" } uses unnamed type
+
+int main()
+{
+  f(0);
+}