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
LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
ssp-3.c
blob
98c12da8ba222e26e55d79eb1e088b19aa8fc7d6
1
/* { dg-do assemble } */
2
/* { dg-options "-fstack-protector-strong -O1 -frename-registers" } */
3
/* { dg-require-effective-target fstack_protector } */
4
5
extern
int
bar
(
const char
*
s
,
int
*
argc
);
6
extern
int
baz
(
const char
*
s
);
7
8
char
9
foo
(
const char
*
s
)
10
{
11
int
argc
;
12
int
ret
;
13
if
( !
bar
(
s
, &
argc
))
14
ret
=
baz
(
s
);
15
return
*
s
;
16
}