diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-24 22:44:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-24 22:44:13 +0000 |
commit | f7c16d903f11814e2d6780e2a2e189b7a7afc4ed (patch) | |
tree | e480ba13c08e1046b5a8a57bffcea348ea75fa08 /test/Frontend/print-header-includes.c | |
parent | 545be51fdfbd243b9ee98177a80397504327a687 (diff) |
Frontend: Add basic -H support.
- I didn't implement the GCC "multiple include guard" detection parts, because
it doesn't seem useful or obvious.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend/print-header-includes.c')
-rw-r--r-- | test/Frontend/print-header-includes.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Frontend/print-header-includes.c b/test/Frontend/print-header-includes.c new file mode 100644 index 0000000000..7773d2069d --- /dev/null +++ b/test/Frontend/print-header-includes.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -include Inputs/test3.h -E -H -o %t.out %s 2> %t.err +// RUN: FileCheck < %t.err %s + +// CHECK-NOT: test3.h +// CHECK: . {{.*test.h}} +// CHECK: .. {{.*test2.h}} + +#include "Inputs/test.h" |