[libcxx] r280605 - Mark test as XFAIL for C++03, rather than providing a dummy pass.

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 3 17:37:06 PDT 2016


Author: marshall
Date: Sat Sep  3 19:37:06 2016
New Revision: 280605

URL: http://llvm.org/viewvc/llvm-project?rev=280605&view=rev
Log:
Mark test as XFAIL for C++03, rather than providing a dummy pass.

Modified:
    libcxx/trunk/test/std/iterators/iterator.range/begin-end.pass.cpp

Modified: libcxx/trunk/test/std/iterators/iterator.range/begin-end.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/iterators/iterator.range/begin-end.pass.cpp?rev=280605&r1=280604&r2=280605&view=diff
==============================================================================
--- libcxx/trunk/test/std/iterators/iterator.range/begin-end.pass.cpp (original)
+++ libcxx/trunk/test/std/iterators/iterator.range/begin-end.pass.cpp Sat Sep  3 19:37:06 2016
@@ -7,6 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
+// XFAIL: c++03
+
 // <iterator>
 // template <class C> auto begin(C& c) -> decltype(c.begin());
 // template <class C> auto begin(const C& c) -> decltype(c.begin());
@@ -17,7 +19,6 @@
 
 #include "test_macros.h"
 
-#if TEST_STD_VER >= 11
 #include <iterator>
 #include <cassert>
 #include <vector>
@@ -142,7 +143,3 @@ int main(){
     static_assert(e - b == 3, "");
 #endif
 }
-
-#else
-int main(){}
-#endif




More information about the cfe-commits mailing list