summaryrefslogtreecommitdiff
path: root/test/Headers/float-darwin.c
blob: 54bac1ac630f7d1eac270c18115188fe59cd92aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// REQUIRES: system-darwin
// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only -std=c11 -isysroot %S/Inputs %s
#include <float.h>

// Test the #include_next on float.h works on Darwin.
#ifndef FLT_HAS_SUBNORM
  #error "FLT_HAS_SUBNORM not defined"
#endif

// Test that definition from builtin are also present.
#ifndef FLT_MAX
  #error "FLT_MAX not defined"
#endif