diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-06 12:06:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-06 12:06:13 +0000 |
commit | d26129a98a04e40be415fe7b89898b2ff7abdd74 (patch) | |
tree | be2bc2b5672dc7aa0b1bd4443ba544b29e4d46bf /clang/test/Frontend/stdin2.c | |
parent | 2588691a6960362abb1258b59a3b75403d15806d (diff) | |
download | bcm5719-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.c | 11 |
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 |