Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / static16.C
blob6425814d05e535069e285e653f64c8412064b81d
1 // { dg-do run  }
2 // Test that we properly evaluate the object parameter when accessing static
3 // members.
5 struct A {
6   static void f () {}
7   static int i;
8 };
10 int A::i;
12 int c = 0;
14 A g ()
16   ++c;
17   return A();
20 int main ()
22   g().f();
23   g().i = 42;
24   return (c != 2);