diff options
Diffstat (limited to 'contrib/netbsd-tests/usr.bin/xlint/lint1/d_cvt_constant.c')
-rw-r--r-- | contrib/netbsd-tests/usr.bin/xlint/lint1/d_cvt_constant.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cvt_constant.c b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cvt_constant.c new file mode 100644 index 0000000..aa74509 --- /dev/null +++ b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cvt_constant.c @@ -0,0 +1,8 @@ +/* the second assignment assumes failed before */ +int +main(void) { + double x = 1; + int foo = 0; + if (foo) + x = 1; +} |