Home | History | Annotate | Download | only in Frontend
      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 
      5 // CHECK-NOT: test3.h
      6 // CHECK: . {{.*test.h}}
      7 // CHECK: .. {{.*test2.h}}
      8 
      9 // RUN: %clang_cc1 -include Inputs/test3.h -E --show-includes -o %t.out %s > %t.stdout
     10 // RUN: FileCheck --check-prefix=MS < %t.stdout %s
     11 // MS-NOT: 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 -fsanitize=address -fdepfile-entry=%t.blacklist -E --show-includes -o %t.out %s > %t.stdout
     18 // RUN: FileCheck --check-prefix=MS-BLACKLIST < %t.stdout %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