15 lines · cpp
1// RUN: %clang -S -emit-llvm -o %t.ll %s2// RUN: not %clang -S -DCRASH %s -o %t.ll 2>&1 | FileCheck %s3 4// CHECK: Preprocessed source(s) and associated run script(s) are located at:5// CHECK-NEXT: clang: note: diagnostic msg: {{.*}}.cpp6// CHECK-NEXT: clang: note: diagnostic msg: {{.*}}.sh7 8#ifdef CRASH9#pragma clang __debug parser_crash10#endif11 12int main() {13 return 0;14}15