piecewise_construct_t.pass.cpp 714 B

123456789101112131415161718192021222324
  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. //===----------------------------------------------------------------------===//
  8. // UNSUPPORTED: c++98, c++03
  9. // <utility>
  10. // struct piecewise_construct_t { explicit piecewise_construct_t() = default; };
  11. // constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t();
  12. #include <utility>
  13. int main(int, char**) {
  14. std::piecewise_construct_t x = std::piecewise_construct;
  15. (void)x;
  16. return 0;
  17. }