forked from OSchip/llvm-project
14 lines
425 B
C
14 lines
425 B
C
// RUN: %clang_dfsan -DTRACK_ORIGINS=2 -mllvm -dfsan-track-origins=2 %s -o %t && %run %t
|
|
// RUN: %clang_dfsan -DTRACK_ORIGINS=1 -mllvm -dfsan-track-origins=1 %s -o %t && %run %t
|
|
// RUN: %clang_dfsan -DTRACK_ORIGINS=0 %s -o %t && %run %t
|
|
//
|
|
// REQUIRES: x86_64-target-arch
|
|
|
|
#include <sanitizer/dfsan_interface.h>
|
|
|
|
#include <assert.h>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
assert(dfsan_get_track_origins() == TRACK_ORIGINS);
|
|
}
|