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