diff options
Diffstat (limited to 'contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_extension.c')
-rw-r--r-- | contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_extension.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_extension.c b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_extension.c new file mode 100644 index 0000000..d8bd8f5 --- /dev/null +++ b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_extension.c @@ -0,0 +1,6 @@ +/* extension */ +void a(void) { + double __logbw = 1; + if (__extension__(({ __typeof((__logbw)) x_ = (__logbw); !__builtin_isinf((x_)) && !__builtin_isnan((x_)); }))) + __logbw = 1; +} |