186752Sfjoe/* This testcase is part of GDB, the GNU debugger. 286752Sfjoe 386752Sfjoe Copyright 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. 486752Sfjoe 586752Sfjoe This program is free software; you can redistribute it and/or modify 686752Sfjoe it under the terms of the GNU General Public License as published by 786752Sfjoe the Free Software Foundation; either version 3 of the License, or 886752Sfjoe (at your option) any later version. 986752Sfjoe 1086752Sfjoe This program is distributed in the hope that it will be useful, 1186752Sfjoe but WITHOUT ANY WARRANTY; without even the implied warranty of 1286752Sfjoe MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1386752Sfjoe GNU General Public License for more details. 1486752Sfjoe 1586752Sfjoe You should have received a copy of the GNU General Public License 1686752Sfjoe along with this program. If not, see <http://www.gnu.org/licenses/>. */ 1786752Sfjoe 1886752Sfjoestruct s 1986752Sfjoe{ 2086752Sfjoe int a; 2186752Sfjoe int b; 2286752Sfjoe}; 2386752Sfjoe 2486752Sfjoeunion u 2586752Sfjoe{ 2686752Sfjoe int a; 2786752Sfjoe float b; 2886752Sfjoe}; 29119419Sobrien 30119419Sobrienenum color { red, green, blue }; 31119419Sobrien 3286752Sfjoestatic void 3386752Sfjoebreak_me (void) 3486752Sfjoe{ 3586752Sfjoe} 3686752Sfjoe 3786752Sfjoestatic void 3886752Sfjoecall_me (int i, float f, struct s s, struct s *ss, union u u, enum color e) 3986752Sfjoe{ 4086752Sfjoe break_me (); 4186752Sfjoe} 4286752Sfjoe 4386752Sfjoeint 4486752Sfjoemain (void) 4586752Sfjoe{ 4686752Sfjoe struct s s; 4786752Sfjoe union u u; 4886752Sfjoe 4986752Sfjoe s.a = 3; 5086752Sfjoe s.b = 5; 5186752Sfjoe u.a = 7; 5286752Sfjoe 5386752Sfjoe call_me (3, 5.0, s, &s, u, green); 5486752Sfjoe 5586752Sfjoe return 0; 5686752Sfjoe} 5786752Sfjoe