llvm-capstone/clang/test/Headers/float-darwin.c
Bruno Cardoso Lopes d93779da15 [Headers] Enable #include_next<float.h> on Darwin
Allows darwin targets to provide additional definitions and
implementation specifc values for float.h

rdar://problem/21961491

llvm-svn: 289018
2016-12-08 02:13:56 +00:00

14 lines
372 B
C

// 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