Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / abi / mangle20-2.C
blobb244e2e794e09d9569e1a3ac66c04f1f9083a25d
1 // { dg-do compile }
2 // { dg-options "-fabi-version=1 -Wabi" }
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 15 Dec 2003 <nathan@codesourcery.com>
7 // PR 9043
8 // mangled array types in templates
10 template <int I> void f(int (*)[2]) {} // { dg-warning "mangled name" }
11 template <int I> void g(int (*)[I+2]) {}
13 template void f<1>(int (*)[2]);  // { dg-message "instantiated" }
14 //  { dg-final { scan-assembler "\n_?_Z1fILi1EEvPALi2E_i\[: \t\n\]" } }
15 template void g<1>(int (*)[3]);
16 //  { dg-final { scan-assembler "\n_?_Z1gILi1EEvPAplT_Li2E_i\[: \t\n\]" } }