aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/pr12942a.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-plugin/pr12942a.cc')
-rw-r--r--ld/testsuite/ld-plugin/pr12942a.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/ld/testsuite/ld-plugin/pr12942a.cc b/ld/testsuite/ld-plugin/pr12942a.cc
index 1a18404..d5328dd 100644
--- a/ld/testsuite/ld-plugin/pr12942a.cc
+++ b/ld/testsuite/ld-plugin/pr12942a.cc
@@ -1,15 +1,13 @@
#include <stdio.h>
#include "pr12942a.h"
-extern "C" void abort ();
-
test_t b(void);
int
main(void)
{
if (test != b ())
- abort ();
+ __builtin_abort ();
printf ("OK\n");
return 0;