Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / opt / pr18084-1.C
blobbf62a7b703546688b70d4f1f2bdc54e8c6283b60
1 // { dg-do run }
2 // { dg-options "-O3" }
4 extern "C" void abort (void);
6 struct X {
7     bool init;
8     void foo() { if (!init) init = true; }
9     void bar() { foo();                  }
13 typedef unsigned long long int uint64_t;
14 uint64_t mask1, mask2;
16 uint64_t calc() {
17   return mask1 & mask2;
20 int main()
22   mask1 = 0x00000000FFFFFFFFull;
23   mask2 = 0x000000000000FFFFull;
24   uint64_t value = calc();
26   X().bar();
28   if(value != calc())
29     abort ();
30   return 0;