Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / abi / mangle20-1.C
blob1985fe3c94171d4b1c1e8ea99827fef349a685eb
1 // { dg-do compile }
2 // { dg-options "-fabi-version=2" }
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]) {}
11 template <int I> void g(int (*)[I+2]) {}
13 static const int I=1;
14 static const int J=2;
16 template void f<1>(int (*)[2]);
17 //  { dg-final { scan-assembler "\n_?_Z1fILi1EEvPA2_i\[: \t\n\]" } }
18 template void g<1>(int (*)[3]);
19 //  { dg-final { scan-assembler "\n_?_Z1gILi1EEvPAplT_Li2E_i\[: \t\n\]" } }