summaryrefslogtreecommitdiffstats
path: root/test/LLVMC/C++/unknown_suffix.unk
diff options
context:
space:
mode:
Diffstat (limited to 'test/LLVMC/C++/unknown_suffix.unk')
-rw-r--r--test/LLVMC/C++/unknown_suffix.unk9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/LLVMC/C++/unknown_suffix.unk b/test/LLVMC/C++/unknown_suffix.unk
new file mode 100644
index 0000000..bf4aea2
--- /dev/null
+++ b/test/LLVMC/C++/unknown_suffix.unk
@@ -0,0 +1,9 @@
+// Test that the -x option works for files with unknown suffixes.
+// RUN: llvmc -x c++ %s -o %t
+// RUN: %abs_tmp | grep hello
+// XFAIL: vg
+#include <iostream>
+
+int main() {
+ std::cout << "hello" << '\n';
+}
OpenPOWER on IntegriCloud