URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [array4.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Test to make sure that the array bounds are treated as an expression
// in template parm substitution.
// Written by Jason Merrill <jason@cygnus.com>
template <class T> void f (T t) { int ar[sizeof (T)]; }
int
main ()
{
f (1);
}