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

// 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];
}