Hi mclow.lists, danalbert, jroelofs,

A couple of misc test changes so they work with <= c++03.

http://reviews.llvm.org/D5958

Files:
  test/depr/depr.c.headers/stdarg_h.pass.cpp
  test/language.support/support.runtime/cstdarg.pass.cpp
  test/language.support/support.start.term/quick_exit.pass.cpp
  test/language.support/support.types/nullptr_t.pass.cpp
Index: test/depr/depr.c.headers/stdarg_h.pass.cpp
===================================================================
--- test/depr/depr.c.headers/stdarg_h.pass.cpp
+++ test/depr/depr.c.headers/stdarg_h.pass.cpp
@@ -15,9 +15,11 @@
 #error va_arg not defined
 #endif
 
+#if __cplusplus >= 201103L
 #ifndef va_copy
 #error va_copy not defined
 #endif
+#endif
 
 #ifndef va_end
 #error va_end not defined
Index: test/language.support/support.runtime/cstdarg.pass.cpp
===================================================================
--- test/language.support/support.runtime/cstdarg.pass.cpp
+++ test/language.support/support.runtime/cstdarg.pass.cpp
@@ -15,9 +15,11 @@
 #error va_arg not defined
 #endif
 
+#if __cplusplus >= 201103L
 #ifndef va_copy
 #error va_copy not defined
 #endif
+#endif
 
 #ifndef va_end
 #error va_end not defined
Index: test/language.support/support.start.term/quick_exit.pass.cpp
===================================================================
--- test/language.support/support.start.term/quick_exit.pass.cpp
+++ test/language.support/support.start.term/quick_exit.pass.cpp
@@ -8,6 +8,7 @@
 //===----------------------------------------------------------------------===//
 //
 // XFAIL: apple-darwin
+// UNSUPPORTED: c++98, c++03
 
 // test quick_exit and at_quick_exit
 
Index: test/language.support/support.types/nullptr_t.pass.cpp
===================================================================
--- test/language.support/support.types/nullptr_t.pass.cpp
+++ test/language.support/support.types/nullptr_t.pass.cpp
@@ -54,6 +54,8 @@
     assert(!(nullptr != a));
     assert(!(nullptr < a));
     assert(!(nullptr > a));
+#ifndef _LIBCPP_HAS_NO_NULLPTR
     std::ptrdiff_t i = reinterpret_cast<std::ptrdiff_t>(nullptr);
     assert(i == 0);
+#endif
 }
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to