summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/dfsan/lit_tests/basic.c
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-14 12:05:41 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-14 12:05:41 +0000
commitf6cf6ab53b7f218f7ce8934b5e0ce2481acde4ee (patch)
tree2c0bff1fc1556f56449c1e94e0833037751283a3 /compiler-rt/lib/dfsan/lit_tests/basic.c
parentf335bd9c69e1f42d1fc3844866622838c7fd3de6 (diff)
downloadbcm5719-llvm-f6cf6ab53b7f218f7ce8934b5e0ce2481acde4ee.tar.gz
bcm5719-llvm-f6cf6ab53b7f218f7ce8934b5e0ce2481acde4ee.zip
Move DFSan test suite under test/
llvm-svn: 201403
Diffstat (limited to 'compiler-rt/lib/dfsan/lit_tests/basic.c')
-rw-r--r--compiler-rt/lib/dfsan/lit_tests/basic.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/compiler-rt/lib/dfsan/lit_tests/basic.c b/compiler-rt/lib/dfsan/lit_tests/basic.c
deleted file mode 100644
index b566c9271d0..00000000000
--- a/compiler-rt/lib/dfsan/lit_tests/basic.c
+++ /dev/null
@@ -1,21 +0,0 @@
-// RUN: %clang_dfsan -m64 %s -o %t && %t
-// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 %s -o %t && %t
-
-// Tests that labels are propagated through loads and stores.
-
-#include <sanitizer/dfsan_interface.h>
-#include <assert.h>
-
-int main(void) {
- int i = 1;
- dfsan_label i_label = dfsan_create_label("i", 0);
- dfsan_set_label(i_label, &i, sizeof(i));
-
- dfsan_label new_label = dfsan_get_label(i);
- assert(i_label == new_label);
-
- dfsan_label read_label = dfsan_read_label(&i, sizeof(i));
- assert(i_label == read_label);
-
- return 0;
-}
OpenPOWER on IntegriCloud