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
4
5#include <sanitizer/dfsan_interface.h>
6
7#include <assert.h>
8
9int main(int argc, char *argv[]) {
10 assert(dfsan_get_track_origins() == TRACK_ORIGINS);
11}
12

source code of compiler-rt/test/dfsan/dfsan_get_track_origins.c