freebsd-nq/test/libcxx/modules/clocale_exports.sh.cpp

25 lines
634 B
C++
Raw Normal View History

2015-09-06 18:46:46 +00:00
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// REQUIRES: modules-support
// UNSUPPORTED: c++98, c++03
2015-09-06 18:46:46 +00:00
// RUN: %build_module
2015-09-06 18:46:46 +00:00
#include <clocale>
2015-09-06 18:46:46 +00:00
#define TEST(...) do { using T = decltype( __VA_ARGS__ ); } while(false)
2015-09-06 18:46:46 +00:00
int main() {
std::lconv l; ((void)l);
TEST(std::setlocale(0, ""));
TEST(std::localeconv());
2015-09-06 18:46:46 +00:00
}