diff options
Diffstat (limited to 'ld/testsuite/ld-size/size-10a.c')
-rw-r--r-- | ld/testsuite/ld-size/size-10a.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-size/size-10a.c b/ld/testsuite/ld-size/size-10a.c new file mode 100644 index 0000000..47e6a2f --- /dev/null +++ b/ld/testsuite/ld-size/size-10a.c @@ -0,0 +1,14 @@ +#include <stdio.h> + +extern int bar_size; +extern char *get_bar (int, int); + +int +main () +{ + char *bar = get_bar (2, 20); + if (bar_size == 10 && bar[2] == 20) + printf ("OK\n"); + + return 0; +} |