summaryrefslogtreecommitdiffstats
path: root/test/Misc/no-warn-in-system-macro.c.inc
diff options
context:
space:
mode:
Diffstat (limited to 'test/Misc/no-warn-in-system-macro.c.inc')
-rw-r--r--test/Misc/no-warn-in-system-macro.c.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Misc/no-warn-in-system-macro.c.inc b/test/Misc/no-warn-in-system-macro.c.inc
new file mode 100644
index 0000000000..3cbe7dfc16
--- /dev/null
+++ b/test/Misc/no-warn-in-system-macro.c.inc
@@ -0,0 +1,9 @@
+extern int __isnanf(float f);
+extern int __isnan(double f);
+extern int __isnanl(long double f);
+#define isnan(x) \
+ (sizeof (x) == sizeof (float) \
+ ? __isnanf (x) \
+ : sizeof (x) == sizeof (double) \
+ ? __isnan (x) : __isnanl (x))
+