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.
#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 } } }