]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up abi-tag25a.C test for C++11
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Dec 2023 08:49:11 +0000 (09:49 +0100)
committerJakub Jelinek <jakub@redhat.com>
Mon, 18 Dec 2023 08:49:11 +0000 (09:49 +0100)
Line 11 of abi-tag25.C is wrapped in #if __cpp_variable_templates
which isn't defined for -std=c++11, so we can't expect a warning
in that case either.

2023-12-18  Jakub Jelinek  <jakub@redhat.com>

* g++.dg/abi/abi-tag25a.C: Expect second dg-warning only for c++14
and later.

gcc/testsuite/g++.dg/abi/abi-tag25a.C

index 9499b5614cdd0fd6592b231d88bb3af8162927e0..ac166a6706633129357bb765806f6c614d741a29 100644 (file)
@@ -5,7 +5,7 @@
 #include "abi-tag25.C"
 
 // { dg-warning "mangled name" "" { target *-*-* } 5 }
-// { dg-warning "mangled name" "" { target *-*-* } 11 }
+// { dg-warning "mangled name" "" { target c++14 } 11 }
 
 // { dg-final { scan-assembler "_Z3funIiEvv" } }
 // { dg-final { scan-assembler "_Z3varIiE" { target c++14 } } }