gdb: Convert language la_word_break_characters field to a method
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elfvers / vers4.c
index 0a0f212c4aad0b243d4b92b071bd4bd149e2d2a3..eed059589ad3f6ae27a1678b7cfdcc13a2db2b6a 100644 (file)
@@ -4,20 +4,29 @@
  * the actual symbol is exported.  This is built both with and without
  * -export-dynamic.
  */
-int bar()
+#include <stdio.h>
+#include "vers.h"
+
+extern int foo ();
+
+int
+bar()
 {
        return 3;
 }
 
+int
 new_foo()
 {
        return 1000+bar();
 
 }
 
-__asm__(".symver new_foo,foo@@VERS_2.0");
+FUNC_SYMVER(new_foo, foo@@VERS_2.0);
 
+int
 main()
 {
   printf("%d\n", foo());
+  return 0;
 }
This page took 0.026061 seconds and 4 git commands to generate.