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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [template/] [function1.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/38647
2
// { dg-do compile }
3
 
4
template struct A {};
5
const char func[] = "abc";
6
template struct A {};   // { dg-error "cannot appear|is invalid" }
7
 
8
char a1[1];
9
A a;
10
 
11
template struct B {};
12
template struct B<__FUNCTION__, N> {};   // { dg-error "cannot appear|is invalid" }
13
 
14
char b1[1];
15
B b;
16
 
17
template struct C {};
18
template struct C<__PRETTY_FUNCTION__, N> {};   // { dg-error "cannot appear|is invalid" }
19
 
20
char c1[1];
21
C c;
22
 
23
template struct D {};
24
template struct D<__func__, N> {};   // { dg-error "cannot appear|is invalid" }
25
 
26
char d1[1];
27
D d;

powered by: WebSVN 2.1.0

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