forked from OSchip/llvm-project
[CFI] Run tests that use cfi diagnostic mode only if cxxabi parts of UBSan are available.
llvm-svn: 240671
This commit is contained in:
parent
2a3443c7c5
commit
a084e16e4b
|
@ -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"
|
||||
|
||||
|
|
|
@ -66,6 +66,8 @@
|
|||
|
||||
// Tests that the CFI enforcement detects bad casts.
|
||||
|
||||
// REQUIRES: cxxabi
|
||||
|
||||
#include <stdio.h>
|
||||
#include "utils.h"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue