Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / noplt-ld-2.c
blob8ae7e2957c975775027f0ca762909cc33161c5bc
1 /* { dg-do run { target *-*-linux* } } */
2 /* { dg-options "-O2 -fpic -fno-plt" } */
3 /* { dg-additional-sources noplt-ld-1.c } */
5 extern void abort (void);
6 extern int * get_ld (void);
7 extern void set_ld (int);
8 extern int test_ld (int);
10 int
11 main ()
13 int *p;
15 p = get_ld ();
16 set_ld (4);
17 if (*p != 4 || !test_ld (4))
18 abort ();
20 return 0;