From-SVN: r25599
This commit is contained in:
Jason Merrill 1999-03-05 06:27:06 -05:00
parent b3b2275a5c
commit 5747af32ee

View File

@ -0,0 +1,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);
}