Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.benjamin / 14139.C
blob2429538f3ab3718df3e447404ffed84489d4d555
1 // { dg-do assemble  }
2 // 981203 bkoz
3 // g++/14309
4 // test for global functions, mf's, and templatized mf's.
6 static int fooe_1(void) { return 5; }
7 static int fooe_2(int x = fooe_1()) { return x; }
9 struct antigua {
10   static int& foo_1();
11   static int foo_2(int& x = antigua::foo_1());
12   static int foo_3(int x = fooe_2());
15 template <typename T>
16   struct jamacia {
17     static int& foo_1();
18     static int foo_2(int& x = antigua::foo_1());
19     static int foo_3(int x = fooe_2());
20   };
22 template class jamacia<int>;