aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/pr22266_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gold/testsuite/pr22266_main.c')
-rw-r--r--gold/testsuite/pr22266_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/testsuite/pr22266_main.c b/gold/testsuite/pr22266_main.c
index 1f3476e..b49b5e1 100644
--- a/gold/testsuite/pr22266_main.c
+++ b/gold/testsuite/pr22266_main.c
@@ -1,9 +1,13 @@
#include <stdlib.h>
+#include <string.h>
extern int *p_int_from_a_2;
+extern const char *hello (void);
int main (void) {
if (*p_int_from_a_2 != 0x11223344)
abort ();
+ if (strcmp(hello(), "Hello, world!") != 0)
+ abort ();
return 0;
}