view gcc/testsuite/g++.dg/abi/Wabi-2-2.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

// 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>) { }