[compiler-rt] r309847 - [ubsan] Test -fsanitize=vptr without -fsanitize=null

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 11:10:36 PDT 2017


Author: vedantk
Date: Wed Aug  2 11:10:36 2017
New Revision: 309847

URL: http://llvm.org/viewvc/llvm-project?rev=309847&view=rev
Log:
[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.

Modified:
    compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp
    compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp

Modified: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp?rev=309847&r1=309846&r2=309847&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp Wed Aug  2 11:10:36 2017
@@ -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
 

Modified: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp?rev=309847&r1=309846&r2=309847&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp Wed Aug  2 11:10:36 2017
@@ -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




More information about the llvm-commits mailing list