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

Subversion Repositories openrisc

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

powered by: WebSVN 2.1.0

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