summaryrefslogtreecommitdiff
path: root/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
commitb16496b8f4797105b029e39736d01a0138dcfd43 (patch)
treebf506f3c829825c8f1e080783479dd8e137be9bd /test/catch_pointer_nullptr.pass.cpp
parent147e19bbd51448e2632a33173519151f6fd5b878 (diff)
Fix or disable C++11 tests in C++03 mode
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@245531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/catch_pointer_nullptr.pass.cpp')
-rw-r--r--test/catch_pointer_nullptr.pass.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/test/catch_pointer_nullptr.pass.cpp b/test/catch_pointer_nullptr.pass.cpp
index b969119..7caee7b 100644
--- a/test/catch_pointer_nullptr.pass.cpp
+++ b/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()
{