* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / pr77624-1.c
blob3567e9b866f107cd550be79147929e4b43d1624a
1 /* PR middle-end/77624 */
2 /* { dg-do compile } */
4 int
5 foo (int a)
7 return __atomic_is_lock_free (2, a); /* { dg-warning "pointer from integer" "" { target c } } */
8 } /* { dg-error "invalid conversion" "" { target c++ } .-1 } */
10 int
11 bar (int a)
13 return __atomic_always_lock_free (2, a); /* { dg-warning "pointer from integer" "" { target c } } */
14 } /* { dg-error "invalid conversion" "" { target c++ } .-1 } */