(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
abi/
Wabi-2-2.C
// Verify that no diagnostic is issued when the version specified
// via -Wabi= matches the version specified by -fabi-version=.

// { dg-options "-Werror -Wabi=2 -fabi-version=2" }
// { dg-do compile }

// The mangling of templates with a non-type template parameter
// of reference type changed in ABI version 3: 
extern int N;
template <int &> struct S { };

// Expect no diagnostic.
void foo (S<N>) { }