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
PR target/83368
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr68680.c
blob
5524e156362ef94b0ba9a165581181ce13a57854
1
/* PR tree-optimization/68680 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fstack-protector-strong" } */
4
5
int
foo
(
char
*);
6
7
int
8
bar
(
unsigned long
x
)
9
{
10
char
a
[
x
];
11
return
foo
(
a
);
12
}
13
14
/* Verify that this function is stack protected. */
15
/* { dg-final { scan-assembler "stack_chk_fail" } } */