aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/x86-needed-1.c
blob: b4584dfaeac4ba33fd523ab4411792fc67c2430c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-fcf-protection -march=x86-64 -mneeded" } */
/* { dg-final { scan-assembler-times ".note.gnu.property" 1 } } */
/* { dg-final { scan-assembler-times ".long	0xc0000002" 1 } } */
/* { dg-final { scan-assembler-times ".long	0xc0008002" 1 } } */

extern void foo (void);

void
bar (void)
{
  foo ();
}