cstdint_exports.sh.cpp (670B)
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 // This test fails on Windows because the underlying libc headers on Windows 11 // are not modular 12 // XFAIL: LIBCXX-WINDOWS-FIXME 13 14 // REQUIRES: modules-support 15 16 // Test that <cstdint> re-exports <stdint.h> 17 18 // RUN: %build_module 19 20 #include <cstdint> 21 22 int main() { 23 int8_t x; ((void)x); 24 std::int8_t y; ((void)y); 25 }