summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorMoritz Jodeit <moritz@cvs.openbsd.org>2006-02-14 16:11:46 +0000
committerMoritz Jodeit <moritz@cvs.openbsd.org>2006-02-14 16:11:46 +0000
commit94e08224a7c61162f7ec57d189700ba5b2075734 (patch)
treeb85fc74a849db10cedb3372edff4b447728f5895 /regress
parent883f705f80fab7b03c202461f0e49b9b8e072e98 (diff)
fix regress test on sparc64. help & ok millert@ cloder@
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/xlint/test-5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/usr.bin/xlint/test-5.c b/regress/usr.bin/xlint/test-5.c
index 42a7787f52c..6f07c9b606d 100644
--- a/regress/usr.bin/xlint/test-5.c
+++ b/regress/usr.bin/xlint/test-5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test-5.c,v 1.1 2005/11/28 01:05:08 cloder Exp $ */
+/* $OpenBSD: test-5.c,v 1.2 2006/02/14 16:11:45 moritz Exp $ */
/*
* Placed in the public domain by Chad Loder <cloder@openbsd.org>.
@@ -6,7 +6,7 @@
* Test warning of promotion of function arguments.
*/
-#include <limits.h>
+#include <stdint.h>
void
foo(unsigned long long a)
@@ -32,7 +32,7 @@ main(int argc, char* argv[])
foo(0); /* ok, promotion of in-range constant */
foo(a); /* warning: promotion of non-constant */
- foobar(QUAD_MAX); /* warning: promotion of out-of-range constant */
+ foobar(INTMAX_MAX);/* warning: promotion of out-of-range constant */
bar(-1); /* warning: promotion of out-of-range constant */
bar(0); /* ok, promotion of in-range constant */
return 0;