2 // { dg-options "-fabi-version=1 -Wabi" }
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 30 Nov 2003 <nathan@codesourcery.com>
8 // mangled template arguments that are external objects incorrectly
10 extern "C" void Foo ();
16 template <void (*)()> struct S {};
17 template <int *> struct T {};
19 void f (S<Foo>){} // { dg-warning "mangled name" }
20 // { dg-final { scan-assembler "\n_?_Z1f1SIXadL3FooEEE\[: \t\n\]" } }
22 void g (T<&NMS::V>){} // { dg-warning "mangled name" }
23 // { dg-final { scan-assembler "\n_?_Z1g1TIXadL_ZN3NMS1VEEEE\[: \t\n\]" } }