include/ChangeLog
[deliverable/binutils-gdb.git] / gold / testsuite / odr_violation1.cc
index 7f6f6d935b5c55c1d3ae307976999d4f6457528e..8b37cea7e2da36ab86b262440198f4440d469756 100644 (file)
@@ -1,4 +1,5 @@
 #include <algorithm>
+#include "odr_header1.h"
 
 class Ordering {
  public:
@@ -10,3 +11,13 @@ class Ordering {
 void SortAscending(int array[], int size) {
   std::sort(array, array + size, Ordering());
 }
+
+extern "C" int OverriddenCFunction(int i) __attribute__ ((weak));
+extern "C" int OverriddenCFunction(int i) {
+  return i;
+}
+
+// Instantiate the Derived vtable, without optimization.
+OdrBase* CreateOdrDerived1() {
+  return new OdrDerived;
+}
This page took 0.025279 seconds and 4 git commands to generate.