2012-02-03 02:42:48 +08:00
|
|
|
// RUN: rm -rf %t
|
2012-02-03 03:35:15 +08:00
|
|
|
// RUN: %clang -fsyntax-only -isystem %S/Inputs/System/usr/include -fmodules -fmodule-cache-path %t -D__need_wint_t -Werror=implicit-function-declaration %s
|
2012-02-03 02:42:48 +08:00
|
|
|
|
|
|
|
// Supplied by compiler, but referenced from the "/usr/include" module map.
|
2012-03-02 06:07:04 +08:00
|
|
|
@__experimental_modules_import cstd.float_constants;
|
2012-02-03 02:42:48 +08:00
|
|
|
|
|
|
|
float getFltMax() { return FLT_MAX; }
|
|
|
|
|
|
|
|
// Supplied by the "/usr/include" module map.
|
2012-03-02 06:07:04 +08:00
|
|
|
@__experimental_modules_import cstd.stdio;
|
2012-02-03 02:42:48 +08:00
|
|
|
|
|
|
|
void test_fprintf(FILE *file) {
|
|
|
|
fprintf(file, "Hello, modules\n");
|
|
|
|
}
|
|
|
|
|
2012-07-23 16:59:39 +08:00
|
|
|
// Supplied by compiler, which forwards to the "/usr/include" version.
|
2012-03-02 06:07:04 +08:00
|
|
|
@__experimental_modules_import cstd.stdint;
|
2012-02-03 02:42:48 +08:00
|
|
|
|
|
|
|
my_awesome_nonstandard_integer_type value;
|
|
|
|
|
|
|
|
// Supplied by the compiler; that version wins.
|
2012-03-02 06:07:04 +08:00
|
|
|
@__experimental_modules_import cstd.stdbool;
|
2012-02-03 02:42:48 +08:00
|
|
|
|
|
|
|
#ifndef bool
|
|
|
|
# error "bool was not defined!"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|