]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/c-c++-common/pr83059.c
Eenable -Winvalid-memory-order for C++ [PR99612].
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / pr83059.c
index 44ff67c879d7d371f7d4590478ac4fbb8516e5dd..795faa519ec043841e2e405cc439a2add3a3fa2a 100644 (file)
@@ -1,10 +1,13 @@
-/* PR c++/83059 */
+/* PR c++/83059 - ICE on invalid C++ code: in tree_to_uhwi, at tree.c:6633 */
 /* { dg-do compile } */
 
 void
 foo (int *p, int *q, int *r)
 {
   __atomic_compare_exchange (p, q, r, 0, 0, -1);       /* { dg-warning "invalid memory model argument 6" } */
-  /* { dg-warning "unknown architecture specifi" "" { target *-*-* } .-1 } */
-  /* { dg-warning "failure memory model cannot be stronger than success memory model" "" { target *-*-* } .-2 } */
 }
+
+/* The test triggers several distinct instance of the warning.  Prune
+   them out; they're not relevant to its main purpose -- to verify
+   there's no ICE.
+   { dg-prune-output "-Winvalid-memory-model" } */