diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2015-06-25 18:45:30 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-06-25 18:45:30 +0000 |
| commit | a084e16e4b9100b6649f07ed023b567df5731722 (patch) | |
| tree | de06a51ef4d999d3e6c2b614ef7a6aa0b79eff63 | |
| parent | 2a3443c7c5eb314aba8bce2f38d8846ecb815f85 (diff) | |
| download | bcm5719-llvm-a084e16e4b9100b6649f07ed023b567df5731722.tar.gz bcm5719-llvm-a084e16e4b9100b6649f07ed023b567df5731722.zip | |
[CFI] Run tests that use cfi diagnostic mode only if cxxabi parts of UBSan are available.
llvm-svn: 240671
| -rw-r--r-- | compiler-rt/test/cfi/anon-namespace.cpp | 2 | ||||
| -rw-r--r-- | compiler-rt/test/cfi/bad-cast.cpp | 2 | ||||
| -rw-r--r-- | compiler-rt/test/cfi/multiple-inheritance.cpp | 2 | ||||
| -rw-r--r-- | compiler-rt/test/cfi/nvcall.cpp | 2 | ||||
| -rw-r--r-- | compiler-rt/test/cfi/overwrite.cpp | 2 | ||||
| -rw-r--r-- | compiler-rt/test/cfi/simple-fail.cpp | 2 | ||||
| -rw-r--r-- | compiler-rt/test/cfi/vdtor.cpp | 2 |
7 files changed, 14 insertions, 0 deletions
diff --git a/compiler-rt/test/cfi/anon-namespace.cpp b/compiler-rt/test/cfi/anon-namespace.cpp index 69cc102cdd7..555bcc7b1e1 100644 --- a/compiler-rt/test/cfi/anon-namespace.cpp +++ b/compiler-rt/test/cfi/anon-namespace.cpp @@ -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" diff --git a/compiler-rt/test/cfi/bad-cast.cpp b/compiler-rt/test/cfi/bad-cast.cpp index 47098f03dbe..c9a6fb9028e 100644 --- a/compiler-rt/test/cfi/bad-cast.cpp +++ b/compiler-rt/test/cfi/bad-cast.cpp @@ -66,6 +66,8 @@ // Tests that the CFI enforcement detects bad casts. +// REQUIRES: cxxabi + #include <stdio.h> #include "utils.h" diff --git a/compiler-rt/test/cfi/multiple-inheritance.cpp b/compiler-rt/test/cfi/multiple-inheritance.cpp index 93a432aae1e..50e966b2f72 100644 --- a/compiler-rt/test/cfi/multiple-inheritance.cpp +++ b/compiler-rt/test/cfi/multiple-inheritance.cpp @@ -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" diff --git a/compiler-rt/test/cfi/nvcall.cpp b/compiler-rt/test/cfi/nvcall.cpp index 7158294e8d4..916194571bd 100644 --- a/compiler-rt/test/cfi/nvcall.cpp +++ b/compiler-rt/test/cfi/nvcall.cpp @@ -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" diff --git a/compiler-rt/test/cfi/overwrite.cpp b/compiler-rt/test/cfi/overwrite.cpp index d983cf7b326..b3ea0e2eec3 100644 --- a/compiler-rt/test/cfi/overwrite.cpp +++ b/compiler-rt/test/cfi/overwrite.cpp @@ -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" diff --git a/compiler-rt/test/cfi/simple-fail.cpp b/compiler-rt/test/cfi/simple-fail.cpp index 2be560b98b1..9c25fc0a24c 100644 --- a/compiler-rt/test/cfi/simple-fail.cpp +++ b/compiler-rt/test/cfi/simple-fail.cpp @@ -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" diff --git a/compiler-rt/test/cfi/vdtor.cpp b/compiler-rt/test/cfi/vdtor.cpp index f42a2d9fbbb..6b1951c405e 100644 --- a/compiler-rt/test/cfi/vdtor.cpp +++ b/compiler-rt/test/cfi/vdtor.cpp @@ -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" |

