Index: gdb/testsuite/gdb.arch/mips16-thunks-sinmain.c |
diff --git a/gdb/testsuite/gdb.base/frame-args.c b/gdb/testsuite/gdb.arch/mips16-thunks-sinmain.c |
similarity index 57% |
copy from gdb/testsuite/gdb.base/frame-args.c |
copy to gdb/testsuite/gdb.arch/mips16-thunks-sinmain.c |
index bfcc7c3f3f648978e6151ab3d9c9c4de37109efe..2cbc471b7231c561ff99cf2f211bde3731182a27 100644 |
--- a/gdb/testsuite/gdb.base/frame-args.c |
+++ b/gdb/testsuite/gdb.arch/mips16-thunks-sinmain.c |
@@ -1,6 +1,6 @@ |
/* This testcase is part of GDB, the GNU debugger. |
- Copyright 2007-2012 Free Software Foundation, Inc. |
+ Copyright 2012 Free Software Foundation, Inc. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
@@ -15,42 +15,37 @@ |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
-struct s |
-{ |
- int a; |
- int b; |
-}; |
+double sinfrob (double d); |
+double sinfrob16 (double d); |
-union u |
-{ |
- int a; |
- float b; |
-}; |
+double sinblah (double d); |
+double sinblah16 (double d); |
-enum color { red, green, blue }; |
+double sinhelper (double); |
+long lsinhelper (double); |
-static void |
-break_me (void) |
-{ |
-} |
+double (*sinfunc) (double) = sinfrob; |
+double (*sinfunc16) (double) = sinfrob16; |
-static void |
-call_me (int i, float f, struct s s, struct s *ss, union u u, enum color e) |
-{ |
- break_me (); |
-} |
+double f = 1.0; |
+long i = 1; |
int |
main (void) |
{ |
- struct s s; |
- union u u; |
+ double d = f; |
+ long l = i; |
+ |
+ d = sinfrob16 (d); |
+ d = sinfrob (d); |
+ d = sinhelper (d); |
- s.a = 3; |
- s.b = 5; |
- u.a = 7; |
+ sinfunc = sinblah; |
+ sinfunc16 = sinblah16; |
- call_me (3, 5.0, s, &s, u, green); |
+ d = sinblah (d); |
+ d = sinblah16 (d); |
+ l = lsinhelper (d); |
- return 0; |
+ return l + i; |
} |