aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bugs/900519_05.C
blob: 05d2ea03d3d8926d1cf9376b7d9712ad0eebc8a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// g++ 1.37.1 bug 900519_05

// g++ fails to allow the use of function-reference types.

// cfront 2.0 passes this test.

// keywords: function types, reference types

typedef void (func_type) (int, int);
typedef func_type& func_ref_type;		// gets bogus error, XFAIL *-*-*

void function (int arg1, int arg2)
{
}

func_type& global_func_ref1 = function;		// gets bogus error, XFAIL *-*-*

int main () { return 0; }