PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / pr52177.c
blob165acdef29cb9b0bbbf8aa37538eb0fb97a8be39
1 /* PR middle-end/52177 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fno-tree-ccp" } */
5 int *s;
7 static inline int
8 foo ()
10 return sizeof (int);
13 int
14 bar ()
16 return __atomic_always_lock_free (foo (), s);
19 int
20 baz ()
22 return __atomic_is_lock_free (foo (), s);