OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [stmtexpr2.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Contributed by Dodji Seketeli 
2
// Origin: PR c++/36408
3
// { dg-options "" }
4
// { dg-do compile }
5
 
6
template
7
void
8
foo()
9
{
10
  int i = ({ }); // { dg-error "void value not ignored" }
11
}
12
 
13
template
14
void
15
bar()
16
{
17
  int i = ({ ({}); }); // { dg-error "void value not ignored" }
18
}
19
 
20
int
21
main ()
22
{
23
  foo<0> ();
24
  bar<0> ();
25
}
26
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.