summaryrefslogtreecommitdiff
path: root/clang/test/Frontend/print-header-includes.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Frontend/print-header-includes.c')
-rw-r--r--clang/test/Frontend/print-header-includes.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Frontend/print-header-includes.c b/clang/test/Frontend/print-header-includes.c
new file mode 100644
index 0000000..7773d20
--- /dev/null
+++ b/clang/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"