diff options
Diffstat (limited to 'contrib/netbsd-tests/usr.bin/xlint/lint1/d_type_conv2.c')
-rw-r--r-- | contrib/netbsd-tests/usr.bin/xlint/lint1/d_type_conv2.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/usr.bin/xlint/lint1/d_type_conv2.c b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_type_conv2.c new file mode 100644 index 0000000..7c2e1f4 --- /dev/null +++ b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_type_conv2.c @@ -0,0 +1,11 @@ +/* Flag information-losing type conversion in argument lists */ + +int f(float); + +void +should_fail() +{ + double x = 2.0; + + f(x); +} |