Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1975)

Unified Diff: gdb/testsuite/gdb.arch/mips16-thunks-sinmain.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.arch/mips16-thunks-sinfrob16.c ('k') | gdb/testsuite/gdb.arch/mips16-thunks-sinmips16.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « gdb/testsuite/gdb.arch/mips16-thunks-sinfrob16.c ('k') | gdb/testsuite/gdb.arch/mips16-thunks-sinmips16.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698