diff options
author | Vedant Kumar <vsk@apple.com> | 2017-08-02 18:10:36 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-08-02 18:10:36 +0000 |
commit | 62abea7849ec96360b0c45e82d92c2a206200d5b (patch) | |
tree | d43ec6e1d04b5133f40cfaed8c542c718937af51 /test/ubsan | |
parent | e18e52ff1c30d465661ecbd4bd873762ca70688a (diff) |
[ubsan] Test -fsanitize=vptr without -fsanitize=null
This reverts commit r309042, thereby adding a test for -fsanitize=vptr
functionality without -fsanitize=null. It also removes -fsanitize=null
from another -fsanitize=vptr test.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@309847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan')
-rw-r--r-- | test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp | 2 | ||||
-rw-r--r-- | test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp b/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp index b20ac73aa..e026e8d05 100644 --- a/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp +++ b/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp @@ -1,4 +1,4 @@ -// RUN: %clangxx -std=c++11 -frtti -fsanitize=vptr,null -g %s -O3 -o %t +// RUN: %clangxx -std=c++11 -frtti -fsanitize=vptr -g %s -O3 -o %t // RUN: %run %t &> %t.log // RUN: cat %t.log | not count 0 && FileCheck --input-file %t.log %s || cat %t.log | count 0 diff --git a/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp b/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp index 898577d8e..f0659f439 100644 --- a/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp +++ b/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp @@ -1,4 +1,4 @@ -// RUN: %clangxx -frtti -fsanitize=vptr,null -fno-sanitize-recover=vptr,null -g %s -O3 -o %t +// RUN: %clangxx -frtti -fsanitize=vptr -fno-sanitize-recover=vptr,null -g %s -O3 -o %t // RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-CORRUPTED-VTABLE --strict-whitespace // UNSUPPORTED: win32 |