]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/abi/mangle20-2.C
c-common.h (lang_post_pch_load): New variable.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / abi / mangle20-2.C
CommitLineData
d63b5e9f
NS
1// { dg-do compile }
2// { dg-options "-fabi-version=1 -Wabi" }
3
4// Copyright (C) 2003 Free Software Foundation, Inc.
5// Contributed by Nathan Sidwell 15 Dec 2003 <nathan@codesourcery.com>
6
7// PR 9043
8// mangled array types in templates
9
4684cd27 10template <int I> void f(int (*)[2]) {} // { dg-warning "mangled name" }
d63b5e9f
NS
11template <int I> void g(int (*)[I+2]) {}
12
4684cd27 13template void f<1>(int (*)[2]);
0b667ed8 14// { dg-final { scan-assembler "\n_?_Z1fILi1EEvPALi2E_i\[: \t\n\]" } }
d63b5e9f 15template void g<1>(int (*)[3]);
0b667ed8 16// { dg-final { scan-assembler "\n_?_Z1gILi1EEvPAplT_Li2E_i\[: \t\n\]" } }