modula2: M2MetaError.{def,mod} and P2SymBuild.mod further cleanup
[official-gcc.git] / gcc / testsuite / gcc.dg / pr97953.c
blob6219619d67b07a8777068ad86e27426c76f279d6
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fno-tree-fre" } */
4 int __attribute__((noipa))
5 foo (int flag, int *p)
7 int val = *p;
8 if (flag)
10 if (val != 1)
11 __builtin_unreachable ();
12 return 0;
14 int val2 = *p;
15 return val2 == 2;
18 int main()
20 int i = 2;
21 if (foo (0, &i) != 1)
22 __builtin_abort ();
23 return 0;