summaryrefslogtreecommitdiffstats
path: root/tests/run-make/compiler-rt-works-on-mingw/foo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/compiler-rt-works-on-mingw/foo.cpp')
-rw-r--r--tests/run-make/compiler-rt-works-on-mingw/foo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run-make/compiler-rt-works-on-mingw/foo.cpp b/tests/run-make/compiler-rt-works-on-mingw/foo.cpp
new file mode 100644
index 000000000..4c2fb9cdb
--- /dev/null
+++ b/tests/run-make/compiler-rt-works-on-mingw/foo.cpp
@@ -0,0 +1,4 @@
+extern "C" void foo() {
+ int *a = new int(3);
+ delete a;
+}