Debian Codegraph @

gcc/testsuite/g++.dg/abi/Wabi-3-3.C

raw
1 // Verify that no diagnostic is issued when the version specified
2 // via -Wabi= matches the version specified by -fabi-version=.
3
4 // { dg-options "-Werror -Wabi=3 -fabi-version=3" }
5 // { dg-do compile }
6
7 // The mangling of templates with a non-type template parameter
8 // of reference type changed in ABI version 3:
9 extern int N;
10 template <int &> struct S { };
11
12 // Expect no diagnostic.
13 void foo (S<N>) { }
14