summaryrefslogtreecommitdiff
path: root/Tests/LinkLanguage/foo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LinkLanguage/foo.cxx')
-rw-r--r--Tests/LinkLanguage/foo.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/LinkLanguage/foo.cxx b/Tests/LinkLanguage/foo.cxx
new file mode 100644
index 000000000..5321c2dc0
--- /dev/null
+++ b/Tests/LinkLanguage/foo.cxx
@@ -0,0 +1,6 @@
+extern "C" int foo(void)
+{
+ // Reference C++ standard library symbols.
+ delete new int;
+ return 0;
+}