blob: 63d9f954e7895b2fdaaf61124660272d18c0ef10 [file] [log] [blame]
Douglas Gregor3e80d8a2012-01-29 20:52:14 +00001// RUN: rm -rf %t
Douglas Gregor8101c7f2012-01-29 23:40:50 +00002// RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t %s -Xclang -verify
Douglas Gregor3e80d8a2012-01-29 20:52:14 +00003
Douglas Gregoreb7b9eb2012-01-31 21:57:50 +00004@import _Builtin_stdlib.float_constants;
Douglas Gregor3e80d8a2012-01-29 20:52:14 +00005
6float getFltMax() { return FLT_MAX; }
7
Douglas Gregoreb7b9eb2012-01-31 21:57:50 +00008@import _Builtin_stdlib.limits;
Douglas Gregor3e80d8a2012-01-29 20:52:14 +00009
10char getCharMax() { return CHAR_MAX; }
11
NAKAMURA Takumi8c8840d2012-02-01 14:09:13 +000012// MS limits.h provides size_t.
13// XFAIL: win32
Douglas Gregor8101c7f2012-01-29 23:40:50 +000014size_t size; // expected-error{{unknown type name 'size_t'}}
Douglas Gregore727d212012-01-30 06:38:25 +000015
Douglas Gregoreb7b9eb2012-01-31 21:57:50 +000016@import _Builtin_stdlib.stdint;
17
18intmax_t value;
19
Douglas Gregore727d212012-01-30 06:38:25 +000020#ifdef __SSE__
Douglas Gregoreb7b9eb2012-01-31 21:57:50 +000021@import _Builtin_intrinsics.intel.sse;
Douglas Gregore727d212012-01-30 06:38:25 +000022#endif
23
24#ifdef __AVX2__
Douglas Gregoreb7b9eb2012-01-31 21:57:50 +000025@import _Builtin_intrinsics.intel.avx2;
Douglas Gregore727d212012-01-30 06:38:25 +000026#endif