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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error2.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
// { dg-do compile }
2
// { dg-options "-fshow-column -std=c++98" }
3
// Properly print CALL_EXPRs while dumping expressions
4
 
5
double g;
6
int func(double);
7
 
8
template 
9
struct Foo {};
10
 
11
Foo f; // { dg-error "5:'int func.double.' cannot appear in a constant-expression" "" { target *-*-* } 11 }
12
// { dg-error "10:'g' cannot appear in a constant-expression" "" { target *-*-* } 11 }
13
// { dg-error "11:a function call cannot appear in a constant-expression" "" { target *-*-* } 11 }
14
// { dg-error "12:template argument 1 is invalid" "" { target *-*-* } 11 }
15
// { dg-error "15:invalid type in declaration before ';' token" "" { target *-*-* } 11 }

powered by: WebSVN 2.1.0

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