aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/array4.C
blob: fab2d5b15279f70a3264c9d2e9479491fb3e0cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test to make sure that the array bounds are treated as an expression
// in template parm substitution.

// Written by Jason Merrill <jason@cygnus.com>

// Build don't link:

template <class T> void f (T t) { int ar[sizeof (T)]; }

int
main ()
{
  f (1);
}