]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gold/testsuite/ver_test_4.cc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / gold / testsuite / ver_test_4.cc
index 372b91f58c1b89e00e9c77a6467e12cc4e0605c9..b8fc79c5c407031c4f96a0b33e6a0abdca7f1c1a 100644 (file)
@@ -1,7 +1,7 @@
-// basic_test.cc -- a test case for gold
+// ver_test_4.cc -- a test case for gold
 
-// Copyright 2007 Free Software Foundation, Inc.
-// Written by Ian Lance Taylor <iant@google.com>.
+// Copyright (C) 2007-2020 Free Software Foundation, Inc.
+// Written by Cary Coutant <ccoutant@google.com>.
 
 // This file is part of gold.
 
 
 #include "ver_test.h"
 
+__asm__(".symver t1_2_orig,t1_2@");
+
+extern "C"
+int
+t1_2_orig()
+{
+  TRACE
+  return 12;
+}
+
 __asm__(".symver t1_2_a,t1_2@@VER2");
 
 extern "C"
@@ -51,3 +61,14 @@ t2_2_b()
   TRACE
   return 22;
 }
+
+
+// This function is given a version by the version script, and should
+// be overridden by the main program.
+
+int
+t4_2a()
+{
+  TRACE
+  return -42;
+}