[libcxx] r302945 - [test] Avoid P0138R2, direct-list-init of fixed enums from integers, part 2/3.

Casey Carter via cfe-commits cfe-commits at lists.llvm.org
Fri May 12 13:33:42 PDT 2017


Author: caseycarter
Date: Fri May 12 15:33:41 2017
New Revision: 302945

URL: http://llvm.org/viewvc/llvm-project?rev=302945&view=rev
Log:
[test] Avoid P0138R2, direct-list-init of fixed enums from integers, part 2/3.

This C++17 Core Language feature isn't necessary when testing std::byte.
It's a minor convenience, but it limits test coverage to very new compilers.

This part activates the tests for more compilers.

Modified:
    libcxx/trunk/test/std/language.support/support.types/byteops/and.assign.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/and.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/lshift.assign.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/lshift.fail.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/lshift.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/not.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/or.assign.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/or.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/rshift.assign.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/rshift.fail.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/rshift.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.fail.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/xor.assign.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/byteops/xor.pass.cpp

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/and.assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/and.assign.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/and.assign.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/and.assign.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // constexpr byte& operator &=(byte l, byte r) noexcept;
 

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/and.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/and.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/and.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/and.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // constexpr byte operator&(byte l, byte r) noexcept;
 

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/lshift.assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/lshift.assign.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/lshift.assign.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/lshift.assign.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // template <class IntegerType>
 //   constexpr byte& operator<<=(byte& b, IntegerType shift) noexcept;

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/lshift.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/lshift.fail.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/lshift.fail.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/lshift.fail.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // template <class IntegerType>
 //    constexpr byte operator <<(byte b, IntegerType shift) noexcept;

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/lshift.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/lshift.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/lshift.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/lshift.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // template <class IntegerType>
 //    constexpr byte operator <<(byte b, IntegerType shift) noexcept;

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/not.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/not.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/not.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/not.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // constexpr byte operator~(byte b) noexcept;
 

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/or.assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/or.assign.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/or.assign.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/or.assign.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // constexpr byte& operator |=(byte l, byte r) noexcept;
 

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/or.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/or.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/or.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/or.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // constexpr byte operator|(byte l, byte r) noexcept;
 

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/rshift.assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/rshift.assign.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/rshift.assign.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/rshift.assign.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // template <class IntegerType>
 //   constexpr byte& operator>>=(byte& b, IntegerType shift) noexcept;

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/rshift.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/rshift.fail.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/rshift.fail.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/rshift.fail.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // template <class IntegerType>
 //    constexpr byte operator >>(byte b, IntegerType shift) noexcept;

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/rshift.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/rshift.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/rshift.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/rshift.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // template <class IntegerType>
 //    constexpr byte operator <<(byte b, IntegerType shift) noexcept;

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.fail.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.fail.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.fail.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // template <class IntegerType>
 //    constexpr IntegerType to_integer(byte b) noexcept;

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/to_integer.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // template <class IntegerType>
 //    constexpr IntegerType to_integer(byte b) noexcept;

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/xor.assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/xor.assign.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/xor.assign.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/xor.assign.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // constexpr byte& operator ^=(byte l, byte r) noexcept;
 

Modified: libcxx/trunk/test/std/language.support/support.types/byteops/xor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/byteops/xor.pass.cpp?rev=302945&r1=302944&r2=302945&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/byteops/xor.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/byteops/xor.pass.cpp Fri May 12 15:33:41 2017
@@ -11,9 +11,6 @@
 #include <test_macros.h>
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-// The following compilers don't like "std::byte b1{1}"
-// UNSUPPORTED: clang-3.5, clang-3.6, clang-3.7, clang-3.8
-// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
 
 // constexpr byte operator^(byte l, byte r) noexcept;
 




More information about the cfe-commits mailing list