blob: a451e8a7addcf9e6c0bf3e677680f557c5da31d2 [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 Gregorebb10042012-01-29 23:53:54 +00004// Note: disable test on MSVC, which doesn't have <complex.h>.
5// REQUIRES: shell
6
Douglas Gregor3e80d8a2012-01-29 20:52:14 +00007@import __compiler_builtins.float_constants;
8
9float getFltMax() { return FLT_MAX; }
10
11@import __compiler_builtins.limits;
12
13char getCharMax() { return CHAR_MAX; }
14
Douglas Gregor8101c7f2012-01-29 23:40:50 +000015size_t size; // expected-error{{unknown type name 'size_t'}}
Douglas Gregore727d212012-01-30 06:38:25 +000016
17#ifdef __SSE__
18@import __compiler_builtins.intel.sse;
19#endif
20
21#ifdef __AVX2__
22@import __compiler_builtins.intel.avx2;
23#endif