]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/libcxx/modules/clocale_exports.sh.cpp
Vendor import of libc++ trunk r290819:
[FreeBSD/FreeBSD.git] / test / libcxx / modules / clocale_exports.sh.cpp
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // REQUIRES: modules-support
11 // UNSUPPORTED: c++98, c++03
12
13 // RUN: %build_module
14
15 #include <clocale>
16
17 #define TEST(...) do { using T = decltype( __VA_ARGS__ ); } while(false)
18
19 int main() {
20   std::lconv l; ((void)l);
21
22   TEST(std::setlocale(0, ""));
23   TEST(std::localeconv());
24 }