new
From-SVN: r25599
This commit is contained in:
parent
b3b2275a5c
commit
5747af32ee
14
gcc/testsuite/g++.old-deja/g++.pt/array4.C
Normal file
14
gcc/testsuite/g++.old-deja/g++.pt/array4.C
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user