| 1 |
// { dg-do assemble } |
| 2 |
// 981203 bkoz |
| 3 |
// g++/14309 |
| 4 |
// test for global functions, mf's, and templatized mf's. |
| 5 |
|
| 6 |
static int fooe_1(void) { return 5; } |
| 7 |
static int fooe_2(int x = fooe_1()) { return x; } |
| 8 |
|
| 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()); |
| 13 |
}; |
| 14 |
|
| 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 |
}; |
| 21 |
|
| 22 |
template class jamacia<int>; |