1 // RUN: %clang_dfsan %s -o %t
4 #include <sanitizer/dfsan_interface.h>
10 int foo(int a
, int b
) {
14 int main(int argc
, char *argv
[]) {
17 dfsan_set_label(8, &a
, sizeof(a
));
18 dfsan_set_label(128, &b
, sizeof(b
));
20 printf("A: 0x%x\n", dfsan_get_label(a
));
21 printf("B: 0x%x\n", dfsan_get_label(b
));
22 dfsan_label l
= dfsan_get_label(c
);
23 printf("C: 0x%x\n", l
);
24 assert(l
== 136); // OR of the other two labels.