2012-01-30 04:52:14 +08:00
|
|
|
// RUN: rm -rf %t
|
2012-01-30 07:40:50 +08:00
|
|
|
// RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t %s -Xclang -verify
|
2012-01-30 04:52:14 +08:00
|
|
|
|
2012-01-30 07:53:54 +08:00
|
|
|
// Note: disable test on MSVC, which doesn't have <complex.h>.
|
|
|
|
// REQUIRES: shell
|
|
|
|
|
2012-01-30 04:52:14 +08:00
|
|
|
@import __compiler_builtins.float_constants;
|
|
|
|
|
|
|
|
float getFltMax() { return FLT_MAX; }
|
|
|
|
|
|
|
|
@import __compiler_builtins.limits;
|
|
|
|
|
|
|
|
char getCharMax() { return CHAR_MAX; }
|
|
|
|
|
2012-01-30 07:40:50 +08:00
|
|
|
size_t size; // expected-error{{unknown type name 'size_t'}}
|