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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.bob
/
inherit1.C
blob
54a9f7366cae1a1f1af453085d3cf8bf9d6102ce
1
// { dg-do assemble }
2
class A {
3
char str[10];
4
public:
5
char* m1 () { return str;};
6
};
7
8
class C : public A {
9
public:
10
};
11
12
class B : public A {
13
public:
14
char* m1 () { C::m1(); return ""; } // { dg-error "" }
15
};
16
17
int main () {
18
A a;
19
B b;
20
C c;
21
22
a.m1();
23
c.m1();
24
b.m1();
25
}