Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / dfsan / dfsan_get_track_origins.c
bloba339322ab9d5c3fd7e74a4402f61c791d8ea7663
1 // RUN: %clang_dfsan -DTRACK_ORIGINS=2 -mllvm -dfsan-track-origins=2 %s -o %t && %run %t
2 // RUN: %clang_dfsan -DTRACK_ORIGINS=1 -mllvm -dfsan-track-origins=1 %s -o %t && %run %t
3 // RUN: %clang_dfsan -DTRACK_ORIGINS=0 %s -o %t && %run %t
5 #include <sanitizer/dfsan_interface.h>
7 #include <assert.h>
9 int main(int argc, char *argv[]) {
10 assert(dfsan_get_track_origins() == TRACK_ORIGINS);