repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
defarg11.C
blob
60199c2e20c9af3784bd71653fcb9eb6c57492dc
1
// { dg-do compile }
2
// { dg-options "-pedantic" }
3
4
class foo {
5
public:
6
void operator& (int = 1); // { dg-error "default argument" }
7
void operator++ (int = 2); // { dg-warning "default argument" }
8
void operator-- (int = 3); // { dg-warning "default argument" }
9
};