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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [pr16696.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 16696 Strange message when operator++ not found
2
// { dg-do compile }
3
// { dg-options "-fdiagnostics-show-option" }
4
 
5
 
6
struct X { void operator++(); };
7
struct Y { };
8
 
9
int main () {
10
  X x;
11
  Y y;
12
  x++; // { dg-bogus "trying prefix operator" }
13
  // { dg-error "fpermissive" "" { target *-*-* } 12 }
14
  y++; // { dg-bogus "trying prefix operator" }
15
  // { dg-error "fpermissive" "" { target *-*-* } 14 }
16
}
17
 

powered by: WebSVN 2.1.0

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