mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
c555238b1a
* ld-elf/dl4.c: New file. * ld-elf/dl4.list: Likewise. * ld-elf/dl4a.out: Likewise. * ld-elf/dl4b.out: Likewise. * ld-elf/dl4main.c: Likewise. * ld-elf/dl4xxx.c: Likewise. * ld-elf/dl4xxx.list: Likewise. * ld-elf/shared.exp (build_tests): Add libdl4a.so and libdl4b.so. (run_tests): Likewise.
25 lines
343 B
C
25 lines
343 B
C
#include <stdio.h>
|
|
|
|
int foo1;
|
|
int foo2;
|
|
|
|
extern void xxx1 (void);
|
|
extern void xxx2 (void);
|
|
|
|
void
|
|
bar (int x)
|
|
{
|
|
if (foo1 == 1)
|
|
printf ("bar OK1\n");
|
|
else if (foo1 == 0)
|
|
printf ("bar OK2\n");
|
|
if (foo2 == 1)
|
|
printf ("bar OK3\n");
|
|
else if (foo2 == 0)
|
|
printf ("bar OK4\n");
|
|
foo1 = -1;
|
|
foo2 = -1;
|
|
xxx1 ();
|
|
xxx2 ();
|
|
}
|