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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
abi-tag23a.C
blob
10645bf74cfa8f5abbd40bddd394e6c9914accb3
1
// PR c++/77379
2
// { dg-options -fabi-version=10 }
3
4
struct __attribute ((abi_tag ("bar"))) string { };
5
6
struct Mother
7
{
8
virtual ~Mother() {};
9
int bar;
10
};
11
12
struct Father
13
{
14
virtual string get_foo() = 0;
15
};
16
17
class Derived:
18
public Mother,
19
public Father
20
{
21
public:
22
string get_foo();
23
};
24
25
struct Final:
26
public Derived
27
{
28
};
29
30
int main()
31
{
32
Final().get_foo();
33
}
34
35
// { dg-final { scan-assembler "_ZThn\[0-9]+_N7Derived7get_fooEv" } }