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
Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb121.C
blob
e01d7478838f905fbd2aa8becb91d096ca12f3ae
1
// { dg-do assemble }
2
class A {
3
private:
4
int i1_;
5
public:
6
void f(int const i1 = 1); // { dg-error "previous specification" }
7
};
8
9
void
10
A::f(int const i1 = 1) // { dg-error "default argument given" }
11
{
12
i1_ = i1;
13
}
14
15
int
16
main()
17
{
18
A a;
19
a.f();
20
return 0;
21
}