blob: 8bd5c92cff140cb08f939e063f25fa62f7f77d32 [file] [log] [blame]
Douglas Gregor2f04f182012-02-02 18:42:48 +00001// RUN: rm -rf %t
2// RUN: %clang -fsyntax-only -isysroot %S/Inputs/System -fmodules -fmodule-cache-path %t -D__need_wint_t %s -Xclang -verify
3
4// Supplied by compiler, but referenced from the "/usr/include" module map.
5@import cstd.float_constants;
6
7float getFltMax() { return FLT_MAX; }
8
9// Supplied by the "/usr/include" module map.
10@import cstd.stdio;
11
12void test_fprintf(FILE *file) {
13 fprintf(file, "Hello, modules\n");
14}
15
16// Supplied by compiler, which forwards to the the "/usr/include" version.
17@import cstd.stdint;
18
19my_awesome_nonstandard_integer_type value;
20
21// Supplied by the compiler; that version wins.
22@import cstd.stdbool;
23
24#ifndef bool
25# error "bool was not defined!"
26#endif
27
28
29