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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [regress/] [template-function1.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
// PR c++/38647
2
// { dg-do compile }
3
// { dg-options "-std=c++0x" }
4
// { dg-prune-output "note" }
5
 
6
template struct A {};
7
const char func[] = "abc";
8
template struct A {};   // { dg-error "cannot appear|is invalid|not a valid|constant expression" }
9
 
10
char a1[1];
11
A a;
12
 
13
template struct B {};
14
template struct B<__FUNCTION__, N> {};   // { dg-error "cannot appear|is invalid|is not a valid|constant expression" }
15
 
16
char b1[1];
17
B b;
18
 
19
template struct C {};
20
template struct C<__PRETTY_FUNCTION__, N> {};   // { dg-error "cannot appear|is invalid|is not a valid|constant expression" }
21
 
22
char c1[1];
23
C c;
24
 
25
template struct D {};
26
template struct D<__func__, N> {};   // { dg-error "cannot appear|is invalid|is not a valid|function scope|constant expression" }
27
 
28
char d1[1];
29
D d;

powered by: WebSVN 2.1.0

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