]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/char/nonnull.cc
libstdc++: Avoid warnings in tests
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string_view / operations / compare / char / nonnull.cc
index 7060ffb01092db1c8c092f7aa93a81a91d0427cd..b77de279576faa506bd76e62143af0d19cea55c6 100644 (file)
@@ -27,3 +27,6 @@ test01()
   return s.compare((const char*)nullptr);      // { dg-warning "\\\[-Wnonnull" }
   return s.compare(0, 2, (const char*)nullptr);        // { dg-warning "\\\[-Wnonnull" }
 }
+
+// Ignore additional diagnostic given with -Wsystem-headers:
+// { dg-prune-output "argument 1 null where non-null expected" }