Fix typo in test case
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / defarg1.C
blob68b07a510cc45f7494cf247db060073b03ff786c
1 // Build don't link:
3 int f (int x)
5   extern void g (int i = f (x)); // ERROR - default argument uses local
6   
7   g();
9   return 0;
12 int f (void);
14 int h1 (int (*)(int) = f);
15 int h2 (int (*)(double) = f); // ERROR - no matching f
17 template <class T>
18 int j (T t)
20   extern void k (int i = j (t)); // ERROR - default argument uses local
22   k ();
24   return 0;
27 template int j (double); // ERROR - instantiated from here