projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e2fbe9
)
More patches from Martin.
author
Robert Lipe
<robertl@gcc.gnu.org>
Tue, 2 Jun 1998 20:01:42 +0000
(20:01 +0000)
committer
Robert Lipe
<robertl@gcc.gnu.org>
Tue, 2 Jun 1998 20:01:42 +0000
(20:01 +0000)
From-SVN: r20190
gcc/testsuite/g++.old-deja/g++.robertl/eb4.C
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C
b/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C
index
152f963
..
0485858
100644
(file)
--- a/
gcc/testsuite/g++.old-deja/g++.robertl/eb4.C
+++ b/
gcc/testsuite/g++.old-deja/g++.robertl/eb4.C
@@
-29,7
+29,7
@@
public:
float f;
};
-class some_derived::func(derived_func_args &a)
+class some_derived::func(derived_func_args &a)
// ERROR - illegal member syntax
{
cout << a.i << ' ' << a.f << endl;
}
@@
-37,12
+37,12
@@
class some_derived::func(derived_func_args &a)
int
main()
{
- some_derived d;
- some_derived::derived_func_args dfa;
+ some_derived d; // ERROR - abstract class
+ some_derived::derived_func_args dfa;
// ERROR - incomplete class
some_base *b = &d;
dfa.i = 10;
dfa.f = 20;
- b->func(dfs);
+ b->func(dfs);
// ERROR - dfs not declared
return 0;
}