Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.bugs/900519_05.C

raw
1 // { dg-do run }
2 // g++ 1.37.1 bug 900519_05
3
4 // g++ fails to allow the use of function-reference types.
5
6 // cfront 2.0 passes this test.
7
8 // keywords: function types, reference types
9
10 typedef void (func_type) (int, int);
11 typedef func_type& func_ref_type;
12
13 void function (int arg1, int arg2)
14 {
15 }
16
17 func_type& global_func_ref1 = function;
18
19 int main () { return 0; }