Match: Only allow single use of MIN_EXPR for SAT_TRUNC form 2 [PR115863]
[official-gcc.git] / gcc / testsuite / g++.dg / abi / Wabi-3-2.C
blob703b277e41e09afd0d0b437fa8bdf649c6642e6c
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-2-3.C test.
5 // { dg-options "-Wabi=3 -fabi-version=2" }
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=2 and the ABI version specified via -Wabi=3.
15 void foo (S<N>) { }   // { dg-warning "the mangled name of .void foo\\(S<N>\\). changes between .-fabi-version=2. \\(._Z3foo1SILZ1NEE.\\) and .-fabi-version=3. \\(._Z3foo1SIL_Z1NEE.\\)" }