Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / compat / init / init-ref2_y.C
blob23e66b2f9a140dfebd7b9d334a77bd190ac1fdf9
1 extern int f (void);
2 extern int r;
4 const int *p;
6 void g ()
8   static const int &i = f();
10   // Test that i points to the same place in both calls.
11   if (p && p != &i)
12     ++r;
13   // Test that if so, it points to static data.
14   if (i != 42)
15     ++r;
17   p = &i;
20 void h ()
22   int arr[] = { 1, 1, 1, 1, 1, 1, 1 };
23   g ();