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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=c++0x" }
2
 
3
// Just discard errors pointing at header files
4
// { dg-prune-output "include" }
5
 
6
#include 
7
#include 
8
 
9
using namespace std;
10
 
11
template< typename ... ArgTypes >
12
void test( ArgTypes ... args ) {
13
   vector x = { &typeid(ArgTypes)... }; // { dg-error "" }
14
}
15
 
16
int main()
17
{
18
    test( 1, 3.14f, 2.78 );
19
    return 0;
20
}

powered by: WebSVN 2.1.0

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