Fix typo in test case
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / static16.C
blob0fbaea86b3b2677fabb84e78db08657e8dbe0c1b
1 // Test that we properly evaluate the object parameter when accessing static
2 // members.
4 struct A {
5   static void f () {}
6   static int i;
7 };
9 int A::i;
11 int c = 0;
13 A g ()
15   ++c;
16   return A();
19 int main ()
21   g().f();
22   g().i = 42;
23   return (c != 2);