Douglas Gregor | 3e80d8a | 2012-01-29 20:52:14 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Douglas Gregor | 8101c7f | 2012-01-29 23:40:50 +0000 | [diff] [blame^] | 2 | // RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t %s -Xclang -verify |
Douglas Gregor | 3e80d8a | 2012-01-29 20:52:14 +0000 | [diff] [blame] | 3 | |
| 4 | @import __compiler_builtins.float_constants; |
| 5 | |
| 6 | float getFltMax() { return FLT_MAX; } |
| 7 | |
| 8 | @import __compiler_builtins.limits; |
| 9 | |
| 10 | char getCharMax() { return CHAR_MAX; } |
| 11 | |
Douglas Gregor | 8101c7f | 2012-01-29 23:40:50 +0000 | [diff] [blame^] | 12 | size_t size; // expected-error{{unknown type name 'size_t'}} |