print-header-includes.c 483 B

12345678910111213141516
  1. // RUN: cd %S
  2. // RUN: %clang_cc1 -include Inputs/test3.h -E -H -o %t.out %s 2> %t.stderr
  3. // RUN: FileCheck < %t.stderr %s
  4. // CHECK-NOT: test3.h
  5. // CHECK: . {{.*test.h}}
  6. // CHECK: .. {{.*test2.h}}
  7. // RUN: %clang_cc1 -include Inputs/test3.h -E --show-includes -o %t.out %s > %t.stdout
  8. // RUN: FileCheck --check-prefix=MS < %t.stdout %s
  9. // MS-NOT: test3.h
  10. // MS: Note: including file: {{.*test.h}}
  11. // MS: Note: including file: {{.*test2.h}}
  12. // MS-NOT: Note
  13. #include "Inputs/test.h"