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:
Eric Fiselier
2016-11-19 03:29:03 +00:00
parent 887c80ec10
commit 6f7f0b8530
5 changed files with 87 additions and 369 deletions

View 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);
}

View 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);
}

View 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);
}

View 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);
}