summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/stdin2.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Frontend/stdin2.c')
-rw-r--r--clang/test/Frontend/stdin2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Frontend/stdin2.c b/clang/test/Frontend/stdin2.c
new file mode 100644
index 00000000000..5a615e572c1
--- /dev/null
+++ b/clang/test/Frontend/stdin2.c
@@ -0,0 +1,11 @@
+// RUN: cd %S && %clang_cc1 -E - < stdin2.c
+
+/*
+ * Bug 4897; current working directory should be searched
+ * for #includes when input is stdin.
+ */
+
+#ifndef BUG_4897
+#define BUG_4897
+#include "stdin2.c"
+#endif
OpenPOWER on IntegriCloud