aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/stack-prot-kernel.c
blob: af16223a83beb66b464358e6749f106a156e7b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target lp64 } } */
/* { dg-skip-if "darwin x86_64 is pic" { *-*-darwin* } { "-m64" } { "" } } */
/* { 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" } } */