testsuite: suppress mangling compatibility aliases
[official-gcc.git] / gcc / testsuite / g++.dg / abi / mangle19-1.C
blob3f98a727de2405aa0568effc77eebe1392ea03b4
1 // { dg-do compile }
2 // { dg-options "-fabi-version=2 -fabi-compat-version=2 -Wabi=0" }
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 15 Dec 2003 <nathan@codesourcery.com>
7 // PR 13242
8 // mangled template arguments that are external objects incorrectly
10 extern int N;
11 template <int &> struct S {};
12 void n (S<N>) {}                // { dg-warning "mangle" }
13 // { dg-final { scan-assembler "\n_?_Z1n1SILZ1NEE\[: \t\n\]" } }