gcc/testsuite/gcc.target/i386/stack-prot-kernel.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target lp64 } */ |
| 3 | /* { dg-require-effective-target nonpic } */ |
| 4 | /* { dg-options "-O2 -fstack-protector-all -mcmodel=kernel" } */ |
| 5 | |
| 6 | void test1 (int x) |
| 7 | { |
| 8 | char p[40]; |
| 9 | int i; |
| 10 | for (i=0; i<40; i++) |
| 11 | p[i] = x; |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler-not "%fs" } } */ |