URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-old/newlib-1.17.0/newlib/testsuite/newlib.stdlib
- from Rev 158 to Rev 816
- ↔ Reverse comparison
Rev 158 → Rev 816
/atexit.c
0,0 → 1,48
#include <stdlib.h> |
#include <stdio.h> |
|
void a(void); |
void b(void); |
void c(int, void *); |
static void newline(void); |
|
void a (void) |
{ |
printf("a"); |
} |
|
void b (void) |
{ |
printf("b"); |
} |
|
void c (int code, void *k) |
{ |
char *x = (char *)k; |
printf("%d%c",code,x[0]); |
} |
|
static void newline (void) |
{ |
printf("\n"); |
} |
|
int main() |
{ |
if (atexit(newline) != 0) |
abort(); |
|
if (atexit(a) != 0) |
abort(); |
|
if (atexit(b) != 0) |
abort(); |
|
if (on_exit(c,(void *)"c") != 0) |
abort(); |
|
if (atexit(a) != 0) |
abort(); |
|
exit(0); |
} |
atexit.c
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: size_max.c
===================================================================
--- size_max.c (nonexistent)
+++ size_max.c (revision 816)
@@ -0,0 +1,18 @@
+#include
+#include
+#include
+
+int main () {
+ size_t s;
+
+ s = SIZE_MAX;
+ /* If SIZE_MAX is truncated when assigning to "s", then SIZE_MAX is
+ too big. */
+ if (s != SIZE_MAX)
+ abort ();
+ /* If SIZE_MAX + 1 is not zero, then SIZE_MAX is not big enough. */
+ if (++s != 0)
+ abort ();
+
+ return 0;
+}
size_max.c
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: atexit.exp
===================================================================
--- atexit.exp (nonexistent)
+++ atexit.exp (revision 816)
@@ -0,0 +1,13 @@
+# Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
+#
+# Permission to use, copy, modify, and distribute this software
+# is freely granted, provided that this notice is preserved.
+#
+
+load_lib checkoutput.exp
+
+set output {
+"a0cba"
+}
+
+newlib_check_output "atexit.c" "$output"
Index: stdlib.exp
===================================================================
--- stdlib.exp (nonexistent)
+++ stdlib.exp (revision 816)
@@ -0,0 +1,10 @@
+# Copyright (C) 2008 by CodeSourcery, Inc. All rights reserved.
+#
+# Permission to use, copy, modify, and distribute this software
+# is freely granted, provided that this notice is preserved.
+
+load_lib passfail.exp
+
+set exclude_list [list "atexit.c"]
+
+newlib_pass_fail_all -x $exclude_list