14 lines · c
1// REQUIRES: system-darwin2// RUN: %clang -target x86_64-apple-darwin11 -fsyntax-only -std=c11 -isysroot %S/Inputs %s3#include <float.h>4 5// Test the #include_next on float.h works on Darwin.6#ifndef FLT_HAS_SUBNORM7 #error "FLT_HAS_SUBNORM not defined"8#endif9 10// Test that definition from builtin are also present.11#ifndef FLT_MAX12 #error "FLT_MAX not defined"13#endif14