PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / abi / Wabi-2-2.C
blobd3a644b2d1c53a31eca2f3faf4970998004c6b58
1 // Verify that no diagnostic is issued when the version specified
2 // via -Wabi= matches the version specified by -fabi-version=.
4 // { dg-options "-Werror -Wabi=2 -fabi-version=2" }
5 // { dg-do compile }
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 { };
12 // Expect no diagnostic.
13 void foo (S<N>) { }