diff options
Diffstat (limited to 'validation/expand/builtin_nan.c')
| -rw-r--r-- | validation/expand/builtin_nan.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/validation/expand/builtin_nan.c b/validation/expand/builtin_nan.c new file mode 100644 index 00000000..20e3ae92 --- /dev/null +++ b/validation/expand/builtin_nan.c @@ -0,0 +1,23 @@ +static float nanf(void) +{ + return __builtin_nanf("0"); +} + +static double nan(void) +{ + return __builtin_nan("0"); +} + +static long double nanl(void) +{ + return __builtin_nanl("0"); +} + +/* + * check-name: builtin_nan expand + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-excludes: call + */ |
