summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/stack-prot-kernel.c
blob: 4a93e333cdd43188670e29fc7e284d3aff0c966c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-require-effective-target nonpic } */
/* { dg-options "-O2 -fstack-protector-all -mcmodel=kernel" } */

void test1 (int x)
{
  char p[40];
  int i;
  for (i=0; i<40; i++)
	p[i] = x;
}

/* { dg-final { scan-assembler-not "%fs" } } */