summaryrefslogtreecommitdiffstats
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 0000000..5321c2d
--- /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;
+}