diff options
Diffstat (limited to 'ld/testsuite/ld-plugin/pr24406-2a.c')
-rw-r--r-- | ld/testsuite/ld-plugin/pr24406-2a.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/pr24406-2a.c b/ld/testsuite/ld-plugin/pr24406-2a.c new file mode 100644 index 0000000..14f54ba --- /dev/null +++ b/ld/testsuite/ld-plugin/pr24406-2a.c @@ -0,0 +1,17 @@ +#include <stdio.h> + +extern int cook(void); + +int __wrap_cook(void) +{ + puts ("PASS"); + return 0; +} + +int main() +{ + if (cook () == -1) + __builtin_abort (); + + return 0; +} |