diff options
| author | gsutre <gsutre@NetBSD.org> | 2013-09-05 09:01:27 +0000 |
|---|---|---|
| committer | gsutre <gsutre@NetBSD.org> | 2013-09-05 09:01:27 +0000 |
| commit | bba607f3f82f35a94b095d6e46415d6a358c465a (patch) | |
| tree | 48cc501bbeb928b618816a333622daf3b47cb02c /tests/include | |
| parent | de63295c97c215806237e84282056d95e083db78 (diff) | |
Fix two tests for typefit: constants larger than LLONG_MAX
do not fit in a signed long long.
Diffstat (limited to 'tests/include')
| -rw-r--r-- | tests/include/sys/t_cdefs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/include/sys/t_cdefs.c b/tests/include/sys/t_cdefs.c index b88aefb0e54..a47300969fc 100644 --- a/tests/include/sys/t_cdefs.c +++ b/tests/include/sys/t_cdefs.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_cdefs.c,v 1.2 2012/03/23 23:12:28 matt Exp $ */ +/* $NetBSD: t_cdefs.c,v 1.3 2013/09/05 09:01:27 gsutre Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> __COPYRIGHT("@(#) Copyright (c) 2008\ The NetBSD Foundation, inc. All rights reserved."); -__RCSID("$NetBSD: t_cdefs.c,v 1.2 2012/03/23 23:12:28 matt Exp $"); +__RCSID("$NetBSD: t_cdefs.c,v 1.3 2013/09/05 09:01:27 gsutre Exp $"); #include <atf-c.h> #include <sys/types.h> @@ -206,8 +206,8 @@ ATF_TC_BODY(stypefit, tc) CHECK(signed long long, -1, 0); CHECK(signed long long, 1, 0); CHECK(signed long long, 0x7fffffffffffffffLL, 0); - CHECK(signed long long, 0x8000000000000000LL, 0); - CHECK(signed long long, 0xffffffffffffffffLL, 0); + CHECK(signed long long, 0x8000000000000000LL, 1); + CHECK(signed long long, 0xffffffffffffffffLL, 1); #undef CHECK } |
