[CFI] Run tests that use cfi diagnostic mode only if cxxabi parts of UBSan are available.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 25 Jun 2015 18:45:30 +0000 (18:45 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 25 Jun 2015 18:45:30 +0000 (18:45 +0000)
llvm-svn: 240671

compiler-rt/test/cfi/anon-namespace.cpp
compiler-rt/test/cfi/bad-cast.cpp
compiler-rt/test/cfi/multiple-inheritance.cpp
compiler-rt/test/cfi/nvcall.cpp
compiler-rt/test/cfi/overwrite.cpp
compiler-rt/test/cfi/simple-fail.cpp
compiler-rt/test/cfi/vdtor.cpp

index 69cc102..555bcc7 100644 (file)
@@ -38,6 +38,8 @@
 // are different. It currently does so because bitset names have global scope
 // so we have to mangle the file path into the bitset name.
 
+// REQUIRES: cxxabi
+
 #include <stdio.h>
 #include "utils.h"
 
index 47098f0..c9a6fb9 100644 (file)
@@ -66,6 +66,8 @@
 
 // Tests that the CFI enforcement detects bad casts.
 
+// REQUIRES: cxxabi
+
 #include <stdio.h>
 #include "utils.h"
 
index 93a432a..50e966b 100644 (file)
@@ -25,6 +25,8 @@
 // Tests that the CFI mechanism is sensitive to multiple inheritance and only
 // permits calls via virtual tables for the correct base class.
 
+// REQUIRES: cxxabi
+
 #include <stdio.h>
 #include "utils.h"
 
index 7158294..9161945 100644 (file)
@@ -20,6 +20,8 @@
 // call to an object of the wrong class, by casting a pointer to such an object
 // and attempting to make a call through it.
 
+// REQUIRES: cxxabi
+
 #include <stdio.h>
 #include "utils.h"
 
index d983cf7..b3ea0e2 100644 (file)
@@ -21,6 +21,8 @@
 // any class, by manually overwriting the virtual table of an object and
 // attempting to make a call through it.
 
+// REQUIRES: cxxabi
+
 #include <stdio.h>
 #include "utils.h"
 
index 2be560b..9c25fc0 100644 (file)
@@ -56,6 +56,8 @@
 // to an object of the wrong class but with a compatible vtable, by casting a
 // pointer to such an object and attempting to make a call through it.
 
+// REQUIRES: cxxabi
+
 #include <stdio.h>
 #include "utils.h"
 
index f42a2d9..6b1951c 100644 (file)
@@ -19,6 +19,8 @@
 // Tests that the CFI enforcement also applies to virtual destructor calls made
 // via 'delete'.
 
+// REQUIRES: cxxabi
+
 #include <stdio.h>
 #include "utils.h"