summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/stdin2.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-06 12:06:13 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-06 12:06:13 +0000
commitd26129a98a04e40be415fe7b89898b2ff7abdd74 (patch)
treebe2bc2b5672dc7aa0b1bd4443ba544b29e4d46bf /clang/test/Frontend/stdin2.c
parent2588691a6960362abb1258b59a3b75403d15806d (diff)
downloadbcm5719-llvm-d26129a98a04e40be415fe7b89898b2ff7abdd74.tar.gz
bcm5719-llvm-d26129a98a04e40be415fe7b89898b2ff7abdd74.zip
Fix the #include search path when reading from stdin, from Jon Simons!
Fixes PR4897. llvm-svn: 110440
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