aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/array2-1.C
blob: 2980a1fd186e90f636e63f4d78b4c6739c53bb8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }
// { dg-options "-fabi-version=1" }

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

// PR c++/13494. ICE

template<typename T>
int foo(int d[][4])
{
  return d[0][0];
}