aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/print-header-includes.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-24 22:44:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-24 22:44:13 +0000
commitf7c16d903f11814e2d6780e2a2e189b7a7afc4ed (patch)
treee480ba13c08e1046b5a8a57bffcea348ea75fa08 /test/Frontend/print-header-includes.c
parent545be51fdfbd243b9ee98177a80397504327a687 (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.c8
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"