aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/compiler_builtins.m
blob: a451e8a7addcf9e6c0bf3e677680f557c5da31d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUN: rm -rf %t
// RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t %s -Xclang -verify

// Note: disable test on MSVC, which doesn't have <complex.h>.
// REQUIRES: shell

@import __compiler_builtins.float_constants;

float getFltMax() { return FLT_MAX; }

@import __compiler_builtins.limits;

char getCharMax() { return CHAR_MAX; }

size_t size; // expected-error{{unknown type name 'size_t'}}

#ifdef __SSE__
@import __compiler_builtins.intel.sse;
#endif

#ifdef __AVX2__
@import __compiler_builtins.intel.avx2;
#endif