diff options
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/xlint/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-1.c.exp | 1 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-2.c.exp | 1 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-3.c.exp | 1 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-4.c | 31 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-4.c.exp | 2 |
6 files changed, 35 insertions, 5 deletions
diff --git a/regress/usr.bin/xlint/Makefile b/regress/usr.bin/xlint/Makefile index 3673135807d..77c17e98627 100644 --- a/regress/usr.bin/xlint/Makefile +++ b/regress/usr.bin/xlint/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.3 2005/11/23 20:38:57 cloder Exp $ +# $OpenBSD: Makefile,v 1.4 2005/11/26 20:45:30 cloder Exp $ -TEST_MODULES= 1 2 3 +TEST_MODULES= 1 2 3 4 LINT= lint LINTFLAGS?= -chapbx diff --git a/regress/usr.bin/xlint/test-1.c.exp b/regress/usr.bin/xlint/test-1.c.exp index 10135079e53..3a91355fcd8 100644 --- a/regress/usr.bin/xlint/test-1.c.exp +++ b/regress/usr.bin/xlint/test-1.c.exp @@ -1,4 +1,3 @@ test-1.c(10): warning: argument unused unused in function unusedargs -lint: cannot find llib-lc.ln Lint pass2: unusedargs returns value which is always ignored diff --git a/regress/usr.bin/xlint/test-2.c.exp b/regress/usr.bin/xlint/test-2.c.exp index 8f0585de1b8..aad2e24e2bd 100644 --- a/regress/usr.bin/xlint/test-2.c.exp +++ b/regress/usr.bin/xlint/test-2.c.exp @@ -8,5 +8,4 @@ test-2.c(29): warning: right shift of 8-bit quantity by 9 bits test-2.c(32): warning: bitwise operation on signed value possibly nonportable test-2.c(32): warning: right shift of 8-bit quantity by 10 bits test-2.c(34): warning: right shift of 8-bit quantity by 10 bits -lint: cannot find llib-lc.ln Lint pass2: diff --git a/regress/usr.bin/xlint/test-3.c.exp b/regress/usr.bin/xlint/test-3.c.exp index 97b36a8aee1..b591b702fb4 100644 --- a/regress/usr.bin/xlint/test-3.c.exp +++ b/regress/usr.bin/xlint/test-3.c.exp @@ -1,2 +1 @@ -lint: cannot find llib-lc.ln Lint pass2: diff --git a/regress/usr.bin/xlint/test-4.c b/regress/usr.bin/xlint/test-4.c new file mode 100644 index 00000000000..767d5788d75 --- /dev/null +++ b/regress/usr.bin/xlint/test-4.c @@ -0,0 +1,31 @@ +/* $OpenBSD: test-4.c,v 1.1 2005/11/26 20:45:30 cloder Exp $ */ + +/* + * Placed in the public domain by Chad Loder <cloder@openbsd.org>. + * + * Test parsing of GNU case ranges. + */ + +/* ARGSUSED */ +int +main(int argc, char* argv[]) +{ + int i; + char c; + + c = 'a'; + switch (c) + { + case 'a': + i = 0; + break; + case 'A' ... 'Z': + i = 1; + break; + default: + i = 1; + } + + i++; + return 0; +} diff --git a/regress/usr.bin/xlint/test-4.c.exp b/regress/usr.bin/xlint/test-4.c.exp new file mode 100644 index 00000000000..e8558e87c24 --- /dev/null +++ b/regress/usr.bin/xlint/test-4.c.exp @@ -0,0 +1,2 @@ +test-4.c(22): warning: case ranges are illegal in ANSI C +Lint pass2: |