c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / pr83059.c
blob795faa519ec043841e2e405cc439a2add3a3fa2a
1 /* PR c++/83059 - ICE on invalid C++ code: in tree_to_uhwi, at tree.c:6633 */
2 /* { dg-do compile } */
4 void
5 foo (int *p, int *q, int *r)
7 __atomic_compare_exchange (p, q, r, 0, 0, -1); /* { dg-warning "invalid memory model argument 6" } */
10 /* The test triggers several distinct instance of the warning. Prune
11 them out; they're not relevant to its main purpose -- to verify
12 there's no ICE.
13 { dg-prune-output "-Winvalid-memory-model" } */