projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[testsuite] Add dg-require-stack-check
[gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arm
/
stack-checking.c
1
/* { dg-do run { target { *-*-linux* } } } */
2
/* { dg-require-stack-check "" } */
3
/* { dg-options "-fstack-check" } */
4
5
int
main
(
void
)
6
{
7
char
*
p
;
8
if
(
1
)
9
{
10
char
i
[
48
];
11
p
=
__builtin_alloca
(
8
);
12
p
[
0
] =
1
;
13
}
14
15
if
(
1
)
16
{
17
char
i
[
48
],
j
[
64
];
18
j
[
48
] =
0
;
19
}
20
21
return
!
p
[
0
];
22
}