1int x;
2
3void __attribute__((noinline)) foo (void)
4{
5  x = -x;
6}
7void __attribute__((const,noinline)) bar (void)
8{
9}
10
11int __attribute__((noinline))
12test (int c)
13{
14  int tmp = x;
15  (c ? foo : bar) ();
16  return tmp + x;
17}
18
19extern void abort (void);
20int main()
21{
22  x = 1;
23  if (test (1) != 0)
24    abort ();
25  return 0;
26}
27