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++.robertl/] [eb82.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
#include <stdio.h>
template <int n1>
double val <int> () // { dg-error "" } bogus code
{
return (double) n1;
}
int main ()
{
printf ("%d\n", val<(int)3> ()); // { dg-error "" } val undeclared
}