annotate gcc/testsuite/c-c++-common/pr77624-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR middle-end/77624 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 int
kono
parents:
diff changeset
5 foo (int a)
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 return __atomic_is_lock_free (2, a); /* { dg-warning "pointer from integer" "" { target c } } */
kono
parents:
diff changeset
8 } /* { dg-error "invalid conversion" "" { target c++ } .-1 } */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 int
kono
parents:
diff changeset
11 bar (int a)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 return __atomic_always_lock_free (2, a); /* { dg-warning "pointer from integer" "" { target c } } */
kono
parents:
diff changeset
14 } /* { dg-error "invalid conversion" "" { target c++ } .-1 } */