* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nolinkage1.C
blob474727c135c49c0b9732d2fa5b93eea68c33ce26
1 // DR 757 allows using types without linkage in declarations with linkage.
2 // Test that this doesn't lead to link-time collisions.
4 // { dg-additional-sources "nolinkage1a.cc" }
5 // { dg-do link { target c++11 } }
7 #include "nolinkage1.h"
9 typedef struct { int i; } *AP;
11 void f(AP) { }
13 A<AP> a;
15 static void g()
17   struct B { };
18   A<B> a;
21 int main() { g(); f(0); return 0; }