blob: d3a644b2d1c53a31eca2f3faf4970998004c6b58 [file] [log] [blame]
// 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>) { }