summaryrefslogtreecommitdiff
path: root/regress/usr.bin/xlint/test-5.c.exp
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-11-28 01:05:09 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-11-28 01:05:09 +0000
commit6ebcfc6e54e6a43e07adf0dfab78693cc79df2ae (patch)
treebd5de5a4b58a6d7159544c32a0b549382aeee6d0 /regress/usr.bin/xlint/test-5.c.exp
parent0d02885b732ad02a62cd2f8c001818867dfc188b (diff)
Test for promoting in-range literal to bigger type
Diffstat (limited to 'regress/usr.bin/xlint/test-5.c.exp')
-rw-r--r--regress/usr.bin/xlint/test-5.c.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/regress/usr.bin/xlint/test-5.c.exp b/regress/usr.bin/xlint/test-5.c.exp
new file mode 100644
index 00000000000..f42ee906c23
--- /dev/null
+++ b/regress/usr.bin/xlint/test-5.c.exp
@@ -0,0 +1,6 @@
+test-5.c(34): warning: conversion to 'unsigned long long' due to prototype, arg #1
+test-5.c(35): warning: conversion of 'long long' to 'int' is out of range, arg #1
+dammit2
+test-5.c(36): warning: conversion to 'unsigned int' due to prototype, arg #1
+test-5.c(36): warning: conversion of negative constant to unsigned type, arg #1
+Lint pass2: