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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=gnu++0x" }
2
 
3
template class A { /* ... */ };
4
template class B { /* ... */ };
5
template class C { /* ... */ };
6
 
7
template class P> class X { /* ... */ };
8
template class Q> class Y { /* ... */ };
9
 
10
X xA; // okay
11
X xB; // { dg-error "mismatch" }
12
// { dg-error "expected a template" "" { target *-*-* } 11 }
13
// { dg-error "invalid type" "" { target *-*-* } 11 }
14
X xC; // { dg-error "mismatch" }
15
// { dg-error "expected a template" "" { target *-*-* } 14 }
16
// { dg-error "invalid type" "" { target *-*-* } 14 }
17
Y yA;
18
Y yB;
19
Y yC; // okay

powered by: WebSVN 2.1.0

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