summaryrefslogtreecommitdiff
path: root/regress/gnu/egcs
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2004-04-23 21:50:10 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2004-04-23 21:50:10 +0000
commit2655e65590bb7db229ad0d080766eee46b2cc842 (patch)
treee892d9a2bf370b7092d76761a1b837fbfbb6a9f7 /regress/gnu/egcs
parentf9396fe143405b99de82b6ea84c0eb98b6627380 (diff)
fill in the blanks for gcc2
Diffstat (limited to 'regress/gnu/egcs')
-rw-r--r--regress/gnu/egcs/gcc-bounds/Makefile4
-rw-r--r--regress/gnu/egcs/gcc-bounds/builtins-1.c.exp11
-rw-r--r--regress/gnu/egcs/gcc-bounds/sscanf-3.c.exp0
-rw-r--r--regress/gnu/egcs/gcc-bounds/sscanf-4.c.exp0
-rw-r--r--regress/gnu/egcs/gcc-bounds/sscanf-5.c.exp0
5 files changed, 13 insertions, 2 deletions
diff --git a/regress/gnu/egcs/gcc-bounds/Makefile b/regress/gnu/egcs/gcc-bounds/Makefile
index 48806f84742..ad4a2548520 100644
--- a/regress/gnu/egcs/gcc-bounds/Makefile
+++ b/regress/gnu/egcs/gcc-bounds/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.5 2004/04/23 21:36:14 avsm Exp $
+# $OpenBSD: Makefile,v 1.6 2004/04/23 21:50:08 avsm Exp $
C_MODULES?= strlcpy strlcat getcwd memcpy fread memcpy declare \
sscanf vararray md builtins
@@ -51,7 +51,7 @@ generate:
.PHONY: ${REGRESS_TARGETS} generate regress
.include <bsd.regress.mk>
-.if defined(USE_GCC3)
+.if ${USE_GCC3:L:Myes}
EXP= .exp.gcc3
.else
EXP= .exp
diff --git a/regress/gnu/egcs/gcc-bounds/builtins-1.c.exp b/regress/gnu/egcs/gcc-bounds/builtins-1.c.exp
new file mode 100644
index 00000000000..01ccf21ac5c
--- /dev/null
+++ b/regress/gnu/egcs/gcc-bounds/builtins-1.c.exp
@@ -0,0 +1,11 @@
+builtins-1.c: In function `main':
+builtins-1.c:12: warning: array size (100) smaller than bound length (200)
+builtins-1.c:13: warning: array size (50) smaller than bound length (100)
+builtins-1.c:14: warning: array size (100) smaller than bound length (105)
+builtins-1.c:14: warning: array size (50) smaller than bound length (105)
+builtins-1.c:15: warning: array size (100) smaller than bound length (500)
+builtins-1.c:16: warning: array size (50) smaller than bound length (1000)
+builtins-1.c:17: warning: array size (50) smaller than bound length (1234)
+builtins-1.c:18: warning: array size (100) smaller than bound length (5432)
+builtins-1.c:19: warning: array size (100) smaller than bound length (2345)
+builtins-1.c:20: warning: array size (100) smaller than required length (4 * 123)
diff --git a/regress/gnu/egcs/gcc-bounds/sscanf-3.c.exp b/regress/gnu/egcs/gcc-bounds/sscanf-3.c.exp
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regress/gnu/egcs/gcc-bounds/sscanf-3.c.exp
diff --git a/regress/gnu/egcs/gcc-bounds/sscanf-4.c.exp b/regress/gnu/egcs/gcc-bounds/sscanf-4.c.exp
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regress/gnu/egcs/gcc-bounds/sscanf-4.c.exp
diff --git a/regress/gnu/egcs/gcc-bounds/sscanf-5.c.exp b/regress/gnu/egcs/gcc-bounds/sscanf-5.c.exp
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regress/gnu/egcs/gcc-bounds/sscanf-5.c.exp