Move test into test/std subdirectory.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@224658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2014-12-20 01:40:03 +00:00
parent 669a8a5a19
commit a90c6dd460
4817 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
int main()
{
}

View File

@@ -0,0 +1,25 @@
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <valarray>
// class glice;
// gslice();
#include <valarray>
#include <cassert>
int main()
{
std::gslice gs;
assert(gs.start() == 0);
assert(gs.size().size() == 0);
assert(gs.stride().size() == 0);
}

View File

@@ -0,0 +1,38 @@
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <valarray>
// class glice;
// gslice(size_t start, const valarray<size_t>& size,
// const valarray<size_t>& stride);
#include <valarray>
#include <cassert>
int main()
{
std::size_t a1[] = {1, 2, 3};
std::size_t a2[] = {4, 5, 6};
std::valarray<std::size_t> size(a1, sizeof(a1)/sizeof(a1[0]));
std::valarray<std::size_t> stride(a2, sizeof(a2)/sizeof(a2[0]));
std::gslice gs(7, size, stride);
assert(gs.start() == 7);
std::valarray<std::size_t> r = gs.size();
assert(r.size() == 3);
assert(r[0] == 1);
assert(r[1] == 2);
assert(r[2] == 3);
r = gs.stride();
assert(r.size() == 3);
assert(r[0] == 4);
assert(r[1] == 5);
assert(r[2] == 6);
}

View File

@@ -0,0 +1,12 @@
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
int main()
{
}