Douglas Gregor | 3e80d8a | 2012-01-29 20:52:14 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Douglas Gregor | 0fcba56 | 2012-01-29 23:24:52 +0000 | [diff] [blame^] | 2 | // RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t %s |
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 | 0fcba56 | 2012-01-29 23:24:52 +0000 | [diff] [blame^] | 12 | //size_t size; // expected-error{{unknown type name 'size_t'}} |