URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [stmtexpr2.C] - Rev 801
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