[OpenACC] enable 'copyin' clause sema for 'data'/'enter data'
[llvm-project.git] / libcxx / test / std / utilities / memory / util.smartptr / util.smartptr.shared / util.smartptr.shared.create / make_shared.private.compile.fail.cpp
blobe168ff78fe80c976b67f8983760055b4a7ecfaa7
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 // <memory>
11 // shared_ptr
13 // template<class T, class... Args>
14 // shared_ptr<T> make_shared(Args&&... args);
16 #include <memory>
17 #include <cassert>
19 #include "test_macros.h"
21 struct S {
22 private:
23 S() {} // ctor is private
26 int main(int, char**)
28 std::shared_ptr<S> p = std::make_shared<S>();
30 return 0;