blob: d5b58b06fff76b63344acddc95b99929ea31d633 [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
Douglas Gregor8101c7f2012-01-29 23:40:50 +000012size_t size; // expected-error{{unknown type name 'size_t'}}
Douglas Gregore727d212012-01-30 06:38:25 +000013
Douglas Gregoreb7b9eb2012-01-31 21:57:50 +000014@import _Builtin_stdlib.stdint;
15
16intmax_t value;
17
Douglas Gregore727d212012-01-30 06:38:25 +000018#ifdef __SSE__
Douglas Gregoreb7b9eb2012-01-31 21:57:50 +000019@import _Builtin_intrinsics.intel.sse;
Douglas Gregore727d212012-01-30 06:38:25 +000020#endif
21
22#ifdef __AVX2__
Douglas Gregoreb7b9eb2012-01-31 21:57:50 +000023@import _Builtin_intrinsics.intel.avx2;
Douglas Gregore727d212012-01-30 06:38:25 +000024#endif