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