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 | |
Douglas Gregor | ebb1004 | 2012-01-29 23:53:54 +0000 | [diff] [blame] | 4 | // Note: disable test on MSVC, which doesn't have <complex.h>. |
| 5 | // REQUIRES: shell |
| 6 | |
Douglas Gregor | 3e80d8a | 2012-01-29 20:52:14 +0000 | [diff] [blame] | 7 | @import __compiler_builtins.float_constants; |
| 8 | |
| 9 | float getFltMax() { return FLT_MAX; } |
| 10 | |
| 11 | @import __compiler_builtins.limits; |
| 12 | |
| 13 | char getCharMax() { return CHAR_MAX; } |
| 14 | |
Douglas Gregor | 8101c7f | 2012-01-29 23:40:50 +0000 | [diff] [blame] | 15 | size_t size; // expected-error{{unknown type name 'size_t'}} |