summaryrefslogtreecommitdiff
path: root/test/LLVMC/include.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/LLVMC/include.c')
-rw-r--r--test/LLVMC/include.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/LLVMC/include.c b/test/LLVMC/include.c
new file mode 100644
index 000000000000..07ae761d2c88
--- /dev/null
+++ b/test/LLVMC/include.c
@@ -0,0 +1,9 @@
+/*
+ * Check that the 'include' options work.
+ * RUN: echo "int x;\n" > %t1.inc
+ * RUN: llvmc -include %t1.inc -fsyntax-only %s
+ */
+
+int f0(void) {
+ return x;
+}