Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / numerics / numarray / class.gslice / gslice.cons / default.pass.cpp
blob9d9a7fcb9a23122925c9922d76b70225245e8a43
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <valarray>
11 // class glice;
13 // gslice();
15 #include <valarray>
16 #include <cassert>
18 #include "test_macros.h"
20 int main(int, char**)
22 std::gslice gs;
23 assert(gs.start() == 0);
24 assert(gs.size().size() == 0);
25 assert(gs.stride().size() == 0);
27 return 0;