aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-04-10 08:26:41 +0000
committerJakub Jelinek <jakub@redhat.com>2008-04-10 08:26:41 +0000
commit117df5d9efd27f92fd139963f1a6033e59f3f6a9 (patch)
tree5a32796c79c3f3a51ac6252d3a32f0bda8e1299f /stdlib
parent3e852ba889e41b8f7eb4d9a1b0abca590dbbab81 (diff)
downloadglibc-117df5d9efd27f92fd139963f1a6033e59f3f6a9.zip
glibc-117df5d9efd27f92fd139963f1a6033e59f3f6a9.tar.gz
glibc-117df5d9efd27f92fd139963f1a6033e59f3f6a9.tar.bz2
* stdlib/tst-makecontext.c (othervar): New variable.
(cf): Test sign extending the argument to long. 2008-04-10 Jakub Jelinek <jakub@redhat.com> * stdlib/tst-makecontext.c (othervar): New variable. (cf): Test sign extending the argument to long.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-makecontext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/tst-makecontext.c b/stdlib/tst-makecontext.c
index 5fe66f6..00f8f19 100644
--- a/stdlib/tst-makecontext.c
+++ b/stdlib/tst-makecontext.c
@@ -26,11 +26,12 @@ char st1[8192];
__thread int thr;
int somevar = -76;
+long othervar = -78L;
void
cf (int i)
{
- if (i != -78 || thr != 94)
+ if (i != othervar || thr != 94)
{
printf ("i %d thr %d\n", i, thr);
exit (1);