summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/chkp-hidden-def.c
blob: 68f70ff258de228225f13ff85c9f6506e0b1dc2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile { target { ! x32 } } } */
/* { dg-require-alias "" } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
/* { dg-final { scan-assembler-not "test.chkp" } } */

int test (int *p);
extern __typeof (test) test  __asm__ ("" "__test") __attribute__ ((visibility ("hidden")));

int test (int *p)
{
  return *p;
}

extern __typeof (test) __test1 __asm__("" "test");
extern __typeof (test) __test1 __attribute__((alias ("" "__test")));