| 1 | // RUN: %clang_cc1 -I %S -emit-pch \ |
| 2 | // RUN: -pch-through-header=Inputs/pch-through1.h -o %t.s3bt1 %s |
| 3 | |
| 4 | // RUN: %clang_cc1 -I %S -include-pch %t.s3bt1 \ |
| 5 | // RUN: -pch-through-header=Inputs/pch-through1.h \ |
| 6 | // RUN: %S/Inputs/pch-through-use3b.cpp 2>&1 | FileCheck %s |
| 7 | |
| 8 | //CHECK: warning: definition of macro 'AFOO' does not match definition in |
| 9 | //CHECK-SAME: precompiled header |
| 10 | //CHECK: warning: definition of macro 'BFOO' does not match definition in |
| 11 | //CHECK-SAME: precompiled header |
| 12 | |
| 13 | #define AFOO 0 |
| 14 | #include "Inputs/pch-through1.h" |
| 15 | |