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
build: Fix missing variable quotes and typo
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
mangle31.C
blob
165260dd0631d2531f1e1d1fb43b3961ef6429b7
1
// PR c++/39095
2
// { dg-do compile }
3
// { dg-additional-options -fabi-compat-version=0 }
4
5
struct B
6
{
7
int b;
8
};
9
10
struct A
11
{
12
B *operator->();
13
A ();
14
B b;
15
};
16
17
A::A ()
18
{
19
}
20
21
B *
22
A::operator->()
23
{
24
return &b;
25
}
26
27
A a;
28
29
int
30
foo ()
31
{
32
return a->b;
33
}
34
35
// { dg-final { scan-assembler "_ZN1AptEv" } }
36
// { dg-final { scan-assembler-not "_ZN1AdtEv" } }