diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-12-18 09:49:11 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-12-18 09:49:11 +0100 |
commit | 994214334f4a7169547a0eadec4bed5f56cf85b8 (patch) | |
tree | 6786b3c343185a9a625bf98bb16a4ff584cc779b | |
parent | 2c0c3368de5f8e3951f14a21d2d9183f6998ead5 (diff) | |
download | gcc-994214334f4a7169547a0eadec4bed5f56cf85b8.zip gcc-994214334f4a7169547a0eadec4bed5f56cf85b8.tar.gz gcc-994214334f4a7169547a0eadec4bed5f56cf85b8.tar.bz2 |
testsuite: Fix up abi-tag25a.C test for C++11
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.
-rw-r--r-- | gcc/testsuite/g++.dg/abi/abi-tag25a.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/abi/abi-tag25a.C b/gcc/testsuite/g++.dg/abi/abi-tag25a.C index 9499b56..ac166a6 100644 --- a/gcc/testsuite/g++.dg/abi/abi-tag25a.C +++ b/gcc/testsuite/g++.dg/abi/abi-tag25a.C @@ -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 } } } |