aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/mangle20-2.C
blob: 44d3afefb54ad2d05887afc02096bb1a0004b6d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile }
// { dg-options "-fabi-version=1 -Wabi" }

// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 15 Dec 2003 <nathan@codesourcery.com>

// PR 9043
// mangled array types in templates

template <int I> void f(int (*)[2]) {}
template <int I> void g(int (*)[I+2]) {}

template void f<1>(int (*)[2]);  // { dg-warning "mangled name" }
//  { dg-final { scan-assembler "\n_Z1fILi1EEvPALi2E_i:" } }
template void g<1>(int (*)[3]);
//  { dg-final { scan-assembler "\n_Z1gILi1EEvPAplT_Li2E_i:" } }