Home | History | Annotate | Download | only in Frontend
      1 // RUN: %clang_cc1 -I%S -include Inputs/test3.h -E -H -o /dev/null %s 2> %t.stderr
      2 // RUN: FileCheck < %t.stderr %s
      3 
      4 // CHECK-NOT: test3.h
      5 // CHECK: . {{.*test.h}}
      6 // CHECK: .. {{.*test2.h}}
      7 
      8 // RUN: %clang_cc1 -I%S -include Inputs/test3.h -E --show-includes -o /dev/null %s | \
      9 // RUN:     FileCheck --strict-whitespace --check-prefix=MS %s
     10 // MS-NOT: <command line>
     11 // MS: Note: including file: {{[^ ]*test3.h}}
     12 // MS: Note: including file: {{[^ ]*test.h}}
     13 // MS: Note: including file:  {{[^ ]*test2.h}}
     14 // MS-NOT: Note
     15 
     16 // RUN: echo "fun:foo" > %t.blacklist
     17 // RUN: %clang_cc1 -I%S -fsanitize=address -fdepfile-entry=%t.blacklist -E --show-includes -o /dev/null %s | \
     18 // RUN:     FileCheck --strict-whitespace --check-prefix=MS-BLACKLIST %s
     19 // MS-BLACKLIST: Note: including file: {{[^ ]*\.blacklist}}
     20 // MS-BLACKLIST: Note: including file: {{[^ ]*test.h}}
     21 // MS-BLACKLIST: Note: including file:  {{[^ ]*test2.h}}
     22 // MS-BLACKLIST-NOT: Note
     23 
     24 #include "Inputs/test.h"
     25