summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/memory/specialized.algorithms
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-13 01:11:58 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-13 01:11:58 +0000
commited9caee9a83a5a03bb2f328a79fcf79696d2789a (patch)
tree2068a42c82824579a194e5b0d60101687a247534 /libcxx/test/std/utilities/memory/specialized.algorithms
parentfde9aafe3d505eef1a81bc9192598885dfe25d7a (diff)
downloadbcm5719-llvm-ed9caee9a83a5a03bb2f328a79fcf79696d2789a.tar.gz
bcm5719-llvm-ed9caee9a83a5a03bb2f328a79fcf79696d2789a.zip
Add tests that std::unique_ptr's default constructor is constexpr.
std::unique_ptr's default constructor must be constexpr in order to allow constant initialization to take place for static objects; Even though we can never have a constexpr unique_ptr variable since it's not a literal type. This patch adds tests that constant initialization takes place by using the __attribute__((require_constant_initialization)) macro. llvm-svn: 300158
Diffstat (limited to 'libcxx/test/std/utilities/memory/specialized.algorithms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud