OSDN Git Service

Merge in xfails from PR14107.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900519_04.C
1 // { dg-do run  }
2 // g++ 1.37.1 bug 900519_04
3
4 // The following legal code causes g++ to segfault.
5
6 // cfront 2.0 passes this test.
7
8 // keywords: segfault, references, initialization
9
10 int cint_obj = 9;
11
12 void take_cint_ref (int& arg) { }
13
14 int& cint_ref_0 = cint_obj;
15 int& cint_ref_1 = cint_obj;
16
17 void test_0 ()
18 {
19   take_cint_ref (cint_ref_1);   // causes segfault
20 }
21
22 int main () { return 0; }