Loading...
testing/test-cases/weak-override-strong.dtest/foo.cpp /dev/null dyld-957
--- /dev/null
+++ dyld/dyld-957/testing/test-cases/weak-override-strong.dtest/foo.cpp
@@ -0,0 +1,16 @@
+
+#include <stdexcept>
+#include <stdio.h>
+#include <string>
+
+#include "test_support.h"
+
+bool gUsedFooNew = false;
+
+// get a strong definition of this C++ symbol
+__attribute__((used))
+void* operator new(size_t size)
+{
+	gUsedFooNew = true;
+	return malloc(size);
+}