diff options
Diffstat (limited to 'contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_complex_split.c')
-rw-r--r-- | contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_complex_split.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_complex_split.c b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_complex_split.c new file mode 100644 index 0000000..7b3d1a1 --- /dev/null +++ b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_complex_split.c @@ -0,0 +1,8 @@ +int b(double a) { + return a == 0; +} +void a(void) { + double _Complex z = 0; + if (b(__real__ z) && b(__imag__ z)) + return; +} |