URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [stmtexpr2.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++/36408
// { dg-options "" }
// { dg-do compile }
template<int>
void
foo()
{
int i = ({ }); // { dg-error "void value not ignored" }
}
template<int>
void
bar()
{
int i = ({ ({}); }); // { dg-error "void value not ignored" }
}
int
main ()
{
foo<0> ();
bar<0> ();
}
Go to most recent revision | Compare with Previous | Blame | View Log