URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [pr16696.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
// PR 16696 Strange message when operator++ not found
// { dg-do compile }
// { dg-options "-fdiagnostics-show-option" }
struct X { void operator++(); };
struct Y { };
int main () {
X x;
Y y;
x++; // { dg-bogus "trying prefix operator" }
// { dg-error "fpermissive" "" { target *-*-* } 12 }
y++; // { dg-bogus "trying prefix operator" }
// { dg-error "fpermissive" "" { target *-*-* } 14 }
}
Go to most recent revision | Compare with Previous | Blame | View Log