diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-29 20:52:14 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-29 20:52:14 +0000 |
commit | 3f09de6442ebf51b80359e3639d863a3945170dd (patch) | |
tree | ca34b6177a22a6ee740d6e8d5bf0e48085ae993b /clang/test/Modules/compiler_builtins.m | |
parent | 715fdd53a67db87a0d7ac79b2f0a4316c18b824d (diff) | |
download | bcm5719-llvm-3f09de6442ebf51b80359e3639d863a3945170dd.tar.gz bcm5719-llvm-3f09de6442ebf51b80359e3639d863a3945170dd.zip |
Introduce a module map for (some of) the compiler-supplied
headers. The remaining headers require more sophisticated
requirements; they'll be handled separately. Part of
<rdar://problem/10710060>.
llvm-svn: 149206
Diffstat (limited to 'clang/test/Modules/compiler_builtins.m')
-rw-r--r-- | clang/test/Modules/compiler_builtins.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Modules/compiler_builtins.m b/clang/test/Modules/compiler_builtins.m new file mode 100644 index 00000000000..3cf24142d33 --- /dev/null +++ b/clang/test/Modules/compiler_builtins.m @@ -0,0 +1,12 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -verify %s + +@import __compiler_builtins.float_constants; + +float getFltMax() { return FLT_MAX; } + +@import __compiler_builtins.limits; + +char getCharMax() { return CHAR_MAX; } + +size_t size; // expected-error{{unknown type name 'size_t'}} |