aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/compiler_builtins.m
blob: 38ce2c98333fee68bb9d7b55caa82305008979b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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'}}