2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900519_05.C
blobf7f7ef3a885110ca158ae4b9d9eaa3ad529d9475
1 // { dg-do run  }
2 // g++ 1.37.1 bug 900519_05
4 // g++ fails to allow the use of function-reference types.
6 // cfront 2.0 passes this test.
8 // keywords: function types, reference types
10 typedef void (func_type) (int, int);
11 typedef func_type& func_ref_type;               
13 void function (int arg1, int arg2)
17 func_type& global_func_ref1 = function;         
19 int main () { return 0; }