xref: /minix3/external/bsd/llvm/dist/clang/test/Frontend/print-header-includes.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1 // REQUIRES: shell
2 
3 // RUN: cd %S
4 // RUN: %clang_cc1 -include Inputs/test3.h -E -H -o %t.out %s 2> %t.stderr
5 // RUN: FileCheck < %t.stderr %s
6 
7 // CHECK-NOT: test3.h
8 // CHECK: . {{.*test.h}}
9 // CHECK: .. {{.*test2.h}}
10 
11 // RUN: %clang_cc1 -include Inputs/test3.h -E --show-includes -o %t.out %s > %t.stdout
12 // RUN: FileCheck --check-prefix=MS < %t.stdout %s
13 // MS-NOT: test3.h
14 // MS: Note: including file: {{.*test.h}}
15 // MS: Note: including file:  {{.*test2.h}}
16 // MS-NOT: Note
17 
18 #include "Inputs/test.h"
19