PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / abi / Wabi-2-3.C
blobd7af9794d6673acc36689a1914e796cd3f406b6e
1 // PR c++/69317 - [6 regression] wrong ABI version in -Wabi warnings 
2 // Exercise that the correct ABI versions are referenced in the -Wabi
3 // diagnostic.  See also the equivalent Wabi-3-2.C test.
5 // { dg-options "-Wabi=2 -fabi-version=3" }
6 // { dg-do compile }
8 // The mangling of templates with a non-type template parameter
9 // of reference type changed in ABI version 3: 
10 extern int N;
11 template <int &> struct S { };
13 // Expect the diagnostic to reference the ABI version specified via
14 // -fabi-version=3 and the ABI version specified via -Wabi=2.
15 void foo (S<N>) { }   // { dg-warning "the mangled name of .void foo\\(S<N>\\). changed between .-fabi-version=2. \\(._Z3foo1SILZ1NEE.\\) and .-fabi-version=3. \\(._Z3foo1SIL_Z1NEE.\\)" }