diff options
Diffstat (limited to 'test/Headers/tgmath-darwin.c')
-rw-r--r-- | test/Headers/tgmath-darwin.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Headers/tgmath-darwin.c b/test/Headers/tgmath-darwin.c new file mode 100644 index 000000000000..916605a718ab --- /dev/null +++ b/test/Headers/tgmath-darwin.c @@ -0,0 +1,12 @@ +// REQUIRES: system-darwin +// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only -std=c11 -isysroot %S/Inputs %s +#include <tgmath.h> + +// Test the #include_next of tgmath.h works on Darwin. +#ifndef SYS_TGMATH_H + #error "SYS_TGMATH_H not defined" +#endif + +#ifndef __CLANG_TGMATH_H + #error "__CLANG_TGMATH_H not defined" +#endif |