Fix stdint/cstdint modules
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@287435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
21
test/libcxx/modules/cinttypes_exports.sh.cpp
Normal file
21
test/libcxx/modules/cinttypes_exports.sh.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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
|
||||
|
||||
// Test that <cinttypes> re-exports <cstdint>
|
||||
|
||||
// RUN: %build_module
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
int main() {
|
||||
int8_t x; ((void)x);
|
||||
std::int8_t y; ((void)y);
|
||||
}
|
||||
21
test/libcxx/modules/cstdint_exports.sh.cpp
Normal file
21
test/libcxx/modules/cstdint_exports.sh.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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
|
||||
|
||||
// Test that <cstdint> re-exports <stdint.h>
|
||||
|
||||
// RUN: %build_module
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
int main() {
|
||||
int8_t x; ((void)x);
|
||||
std::int8_t y; ((void)y);
|
||||
}
|
||||
20
test/libcxx/modules/inttypes_h_exports.sh.cpp
Normal file
20
test/libcxx/modules/inttypes_h_exports.sh.cpp
Normal file
@@ -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.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// REQUIRES: modules-support
|
||||
|
||||
// Test that intypes.h re-exports stdint.h
|
||||
|
||||
// RUN: %build_module
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
int main() {
|
||||
int8_t x; ((void)x);
|
||||
}
|
||||
20
test/libcxx/modules/stdint_h_exports.sh.cpp
Normal file
20
test/libcxx/modules/stdint_h_exports.sh.cpp
Normal file
@@ -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.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// REQUIRES: modules-support
|
||||
|
||||
// Test that int8_t and the like are exported from stdint.h not inttypes.h
|
||||
|
||||
// RUN: %build_module
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
int main() {
|
||||
int8_t x; ((void)x);
|
||||
}
|
||||
Reference in New Issue
Block a user