diff options
author | Dan Liew <dan@su-root.co.uk> | 2018-09-03 08:33:24 +0000 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2018-09-03 08:33:24 +0000 |
commit | 8ea71f14fbe5a65c1acf367bfa30d588e87b815c (patch) | |
tree | bc8aa2254b28f0eeef17b3c38b77b8b329dbf3cd /test/ubsan/TestCases | |
parent | e37f920f00e69152c1e3b43c306441ecc7179609 (diff) | |
download | compiler-rt-8ea71f14fbe5a65c1acf367bfa30d588e87b815c.tar.gz |
[UBSan] Add missing `%run` prefixes to Pointer tests.
Summary: rdar://problem/41126835
Reviewers: vsk, kubamracek
Subscribers: #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D51271
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@341298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan/TestCases')
-rw-r--r-- | test/ubsan/TestCases/Pointer/index-overflow.cpp | 6 | ||||
-rw-r--r-- | test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ubsan/TestCases/Pointer/index-overflow.cpp b/test/ubsan/TestCases/Pointer/index-overflow.cpp index eb7f95e85..f9b1fea08 100644 --- a/test/ubsan/TestCases/Pointer/index-overflow.cpp +++ b/test/ubsan/TestCases/Pointer/index-overflow.cpp @@ -1,7 +1,7 @@ // RUN: %clangxx -fsanitize=pointer-overflow %s -o %t -// RUN: %t 1 2>&1 | FileCheck %s --check-prefix=ERR -// RUN: %t 0 2>&1 | FileCheck %s --check-prefix=SAFE -// RUN: %t -1 2>&1 | FileCheck %s --check-prefix=SAFE +// RUN: %run %t 1 2>&1 | FileCheck %s --check-prefix=ERR +// RUN: %run %t 0 2>&1 | FileCheck %s --check-prefix=SAFE +// RUN: %run %t -1 2>&1 | FileCheck %s --check-prefix=SAFE #include <stdio.h> #include <stdint.h> diff --git a/test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp b/test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp index 0002c713f..5a1432625 100644 --- a/test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp +++ b/test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp @@ -1,5 +1,5 @@ // RUN: %clangxx -std=c++11 -fsanitize=pointer-overflow %s -o %t -// RUN: %t 2>&1 | FileCheck %s +// RUN: %run %t 2>&1 | FileCheck %s int main(int argc, char *argv[]) { char c; |