Debian Codegraph @

clang/test/Driver/crash-ir-repro.cpp

raw
1 // RUN: %clang -S -emit-llvm -o %t.ll %s
2 // RUN: not %clang -S -DCRASH %s -o %t.ll 2>&1 | FileCheck %s
3
4 // TODO(boomanaiden154): This test case causes clang to raise a signal when
5 // running under ubsan, but not in normal build configurations. This should
6 // be fixed.
7 // UNSUPPORTED: ubsan, hwasan
8
9 // CHECK: Preprocessed source(s) and associated run script(s) are located at:
10 // CHECK-NEXT: clang: note: diagnostic msg: {{.*}}.cpp
11 // CHECK-NEXT: clang: note: diagnostic msg: {{.*}}.sh
12
13 #ifdef CRASH
14 #pragma clang __debug parser_crash
15 #endif
16
17 int main() {
18 return 0;
19 }