blob: 8d2b2288db219e5b4fa10ad8d96fea48b18c0e8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-do compile } */
/* { dg-require-effective-target mpx } */
/* { 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")));
|