summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test/catch_pointer_nullptr.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-08-20 01:22:17 +0000
committerEric Fiselier <eric@efcs.ca>2015-08-20 01:22:17 +0000
commitc79a8f7753d1606f672d612876c7b4b065aab8d3 (patch)
treef9d32b8c8ac98a3a46f40ef278b95be41593d064 /libcxxabi/test/catch_pointer_nullptr.pass.cpp
parentbe78c25acb42c1a5665c45ab6005492625723777 (diff)
downloadbcm5719-llvm-c79a8f7753d1606f672d612876c7b4b065aab8d3.tar.gz
bcm5719-llvm-c79a8f7753d1606f672d612876c7b4b065aab8d3.zip
Fix or disable C++11 tests in C++03 mode
llvm-svn: 245531
Diffstat (limited to 'libcxxabi/test/catch_pointer_nullptr.pass.cpp')
-rw-r--r--libcxxabi/test/catch_pointer_nullptr.pass.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/libcxxabi/test/catch_pointer_nullptr.pass.cpp b/libcxxabi/test/catch_pointer_nullptr.pass.cpp
index b969119b0d8..7caee7b3aa0 100644
--- a/libcxxabi/test/catch_pointer_nullptr.pass.cpp
+++ b/libcxxabi/test/catch_pointer_nullptr.pass.cpp
@@ -7,17 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03
+
#include <cassert>
#include <cstdlib>
-#ifndef __has_feature
-#define __has_feature(x) 0
-#endif
-
struct A {};
-#if __has_feature(cxx_nullptr)
-
void test1()
{
try
@@ -62,22 +58,6 @@ void catch_nullptr_test() {
}
}
-#else
-
-void test1()
-{
-}
-
-void test2()
-{
-}
-
-template <class Catch>
-void catch_nullptr_test()
-{
-}
-
-#endif
int main()
{
OpenPOWER on IntegriCloud