[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Misc / warn-in-system-macro-def.c
blobbdf7d39325e94eae9d6e90971b788793e1e0c647
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -isystem %S -Wdouble-promotion -fsyntax-only %s 2>&1 | FileCheck -allow-empty %s
2 // CHECK: warning:
3 // CHECK: expanded from macro 'ISNAN'
4 // CHECK: expanded from macro 'isnan'
6 #include <warn-in-system-macro-def.c.inc>
8 #define isnan(x) \
9 (sizeof (x) == sizeof (float) \
10 ? __isnanf (x) \
11 : sizeof (x) == sizeof (double) \
12 ? __isnan (x) : __isnanl (x))
14 int main(void)
16 double foo = 1.0;
18 if (ISNAN(foo))
19 return 1;
20 return 0;