[cfe-commits] [libcxx] r120029 - in /libcxx/trunk/test: depr/depr.function.objects/ depr/depr.function.objects/depr.adaptors/ depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/ depr/depr.function.objects/depr.base/ utilities/function.objects/base/ utilities/meta/meta.unary.prop.query/ utilities/meta/meta.unary/meta.unary.prop/

Howard Hinnant hhinnant at apple.com
Tue Nov 23 11:15:49 PST 2010


Author: hhinnant
Date: Tue Nov 23 13:15:49 2010
New Revision: 120029

URL: http://llvm.org/viewvc/llvm-project?rev=120029&view=rev
Log:
Update testsuite strucuture to latest draft

Added:
    libcxx/trunk/test/depr/depr.function.objects/
    libcxx/trunk/test/depr/depr.function.objects/depr.adaptors/
    libcxx/trunk/test/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/
    libcxx/trunk/test/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/
    libcxx/trunk/test/depr/depr.function.objects/depr.base/
    libcxx/trunk/test/depr/depr.function.objects/depr.base/nothing_to_do.pass.cpp
      - copied unchanged from r120026, libcxx/trunk/test/utilities/function.objects/base/nothing_to_do.pass.cpp
    libcxx/trunk/test/utilities/meta/meta.unary.prop.query/
    libcxx/trunk/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
      - copied unchanged from r120026, libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/alignment_of.pass.cpp
    libcxx/trunk/test/utilities/meta/meta.unary.prop.query/extent.pass.cpp
      - copied unchanged from r120026, libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/extent.pass.cpp
    libcxx/trunk/test/utilities/meta/meta.unary.prop.query/rank.pass.cpp
      - copied unchanged from r120026, libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/rank.pass.cpp
Removed:
    libcxx/trunk/test/utilities/function.objects/base/
    libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/alignment_of.pass.cpp
    libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/extent.pass.cpp
    libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/rank.pass.cpp

Removed: libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/alignment_of.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/alignment_of.pass.cpp?rev=120028&view=auto
==============================================================================
--- libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/alignment_of.pass.cpp (original)
+++ libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/alignment_of.pass.cpp (removed)
@@ -1,42 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// type_traits
-
-// alignment_of
-
-#include <type_traits>
-
-template <class T, unsigned A>
-void test_alignment_of()
-{
-    static_assert( std::alignment_of<T>::value == A, "");
-    static_assert( std::alignment_of<const T>::value == A, "");
-    static_assert( std::alignment_of<volatile T>::value == A, "");
-    static_assert( std::alignment_of<const volatile T>::value == A, "");
-}
-
-class Class
-{
-public:
-    ~Class();
-};
-
-int main()
-{
-    test_alignment_of<int&, sizeof(long) == 4 ? 4 : 8>();
-    test_alignment_of<Class, 1>();
-    test_alignment_of<int*, sizeof(long) == 4 ? 4 : 8>();
-    test_alignment_of<const int*, sizeof(long) == 4 ? 4 : 8>();
-    test_alignment_of<char[3], 1>();
-    test_alignment_of<int, 4>();
-    test_alignment_of<double, sizeof(long) == 4 ? 4 : 8>();
-    test_alignment_of<bool, 1>();
-    test_alignment_of<unsigned, 4>();
-}

Removed: libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/extent.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/extent.pass.cpp?rev=120028&view=auto
==============================================================================
--- libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/extent.pass.cpp (original)
+++ libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/extent.pass.cpp (removed)
@@ -1,60 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// type_traits
-
-// extent
-
-#include <type_traits>
-
-template <class T, unsigned A>
-void test_extent()
-{
-    static_assert((std::extent<T>::value == A), "");
-    static_assert((std::extent<const T>::value == A), "");
-    static_assert((std::extent<volatile T>::value == A), "");
-    static_assert((std::extent<const volatile T>::value == A), "");
-}
-
-template <class T, unsigned A>
-void test_extent1()
-{
-    static_assert((std::extent<T, 1>::value == A), "");
-    static_assert((std::extent<const T, 1>::value == A), "");
-    static_assert((std::extent<volatile T, 1>::value == A), "");
-    static_assert((std::extent<const volatile T, 1>::value == A), "");
-}
-
-class Class
-{
-public:
-    ~Class();
-};
-
-int main()
-{
-    test_extent<void, 0>();
-    test_extent<int&, 0>();
-    test_extent<Class, 0>();
-    test_extent<int*, 0>();
-    test_extent<const int*, 0>();
-    test_extent<int, 0>();
-    test_extent<double, 0>();
-    test_extent<bool, 0>();
-    test_extent<unsigned, 0>();
-
-    test_extent<int[2], 2>();
-    test_extent<int[2][4], 2>();
-    test_extent<int[][4], 0>();
-
-    test_extent1<int, 0>();
-    test_extent1<int[2], 0>();
-    test_extent1<int[2][4], 4>();
-    test_extent1<int[][4], 4>();
-}

Removed: libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/rank.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/rank.pass.cpp?rev=120028&view=auto
==============================================================================
--- libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/rank.pass.cpp (original)
+++ libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/rank.pass.cpp (removed)
@@ -1,46 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// type_traits
-
-// rank
-
-#include <type_traits>
-
-template <class T, unsigned A>
-void test_rank()
-{
-    static_assert( std::rank<T>::value == A, "");
-    static_assert( std::rank<const T>::value == A, "");
-    static_assert( std::rank<volatile T>::value == A, "");
-    static_assert( std::rank<const volatile T>::value == A, "");
-}
-
-class Class
-{
-public:
-    ~Class();
-};
-
-int main()
-{
-    test_rank<void, 0>();
-    test_rank<int&, 0>();
-    test_rank<Class, 0>();
-    test_rank<int*, 0>();
-    test_rank<const int*, 0>();
-    test_rank<int, 0>();
-    test_rank<double, 0>();
-    test_rank<bool, 0>();
-    test_rank<unsigned, 0>();
-
-    test_rank<char[3], 1>();
-    test_rank<char[][3], 2>();
-    test_rank<char[][4][3], 3>();
-}





More information about the cfe-commits mailing list