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
libstdc++: Fix test FAILs due to -Wreturn-local-addr
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
sibcall2.C
blob
818fa231cd897db58c2b29cbf7c8a0e5f4304249
1
// { dg-do assemble }
2
// { dg-options "-O2 -foptimize-sibling-calls -fno-exceptions" }
3
4
struct X
5
{
6
const char *c() const { return b; };
7
char *b;
8
};
9
extern "C" int f (const char *);
10
struct A
11
{
12
X x;
13
void y();
14
};
15
void A::y()
16
{
17
const char *const a[] = { x.c() };
18
f (a[0]);
19
}