diff options
author | Ben Craig <ben.craig@codeaurora.org> | 2016-04-19 20:13:55 +0000 |
---|---|---|
committer | Ben Craig <ben.craig@codeaurora.org> | 2016-04-19 20:13:55 +0000 |
commit | 8743f8ca245d94e91889f376c236aed81b61ffa3 (patch) | |
tree | 12b8894ff03202b0b541c10319134b8bce850298 /libcxx/test/std/utilities/utility/synopsis.pass.cpp | |
parent | 1d9de10130ffd5444a5cc41a27467da5e25d3f51 (diff) | |
download | bcm5719-llvm-8743f8ca245d94e91889f376c236aed81b61ffa3.tar.gz bcm5719-llvm-8743f8ca245d94e91889f376c236aed81b61ffa3.zip |
Include initializer_list from utility
The C++11 and C++14 standards both say in the header <utility> synopsis that
<utility> shall include <initializer_list>.
llvm-svn: 266808
Diffstat (limited to 'libcxx/test/std/utilities/utility/synopsis.pass.cpp')
-rw-r--r-- | libcxx/test/std/utilities/utility/synopsis.pass.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/utility/synopsis.pass.cpp b/libcxx/test/std/utilities/utility/synopsis.pass.cpp new file mode 100644 index 00000000000..edb45cf6105 --- /dev/null +++ b/libcxx/test/std/utilities/utility/synopsis.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <utility> + +// #include <initializer_list> + +#include <utility> + +int main() +{ + std::initializer_list<int> x; +} + |