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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic-new2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do run }
2
// { dg-options "-std=c++0x" }
3
// PR c++/32597
4
#include 
5
#include 
6
 
7
template< class... Args > void f( Args... args )
8
{
9
  {
10
    int x = 17;
11
    (void)x;
12
  }
13
 
14
  {
15
    int y(args...);
16
    assert(y == 0);
17
  }
18
 
19
}
20
 
21
int main()
22
{
23
   f();
24
}

powered by: WebSVN 2.1.0

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