1228762Smm/* This testcase is part of GDB, the GNU debugger. 2228762Smm 3228762Smm Copyright (C) 2013-2020 Free Software Foundation, Inc. 4228762Smm 5228762Smm This program is free software; you can redistribute it and/or modify 6228762Smm it under the terms of the GNU General Public License as published by 7228762Smm the Free Software Foundation; either version 3 of the License, or 8228762Smm (at your option) any later version. 9228762Smm 10228762Smm This program is distributed in the hope that it will be useful, 11228762Smm but WITHOUT ANY WARRANTY; without even the implied warranty of 12228762Smm MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13228762Smm GNU General Public License for more details. 14228762Smm 15228762Smm You should have received a copy of the GNU General Public License 16228762Smm along with this program. If not, see <http://www.gnu.org/licenses/>. */ 17228762Smm 18228762Smmstruct s 19228762Smm{ 20228762Smm int a[256]; 21228762Smm char c[256]; 22228762Smm}; 23228762Smm 24228762Smmstatic void 25fun2 (void) 26{ 27 28} 29 30static void 31fun1 (int i, int j, long k, struct s ss) 32{ 33 /* Allocate local variables on stack. */ 34 struct s s1; 35 36 if (i < BACKTRACE_DEPTH) 37 fun1 (i + 1, j + 2, k - 1, ss); 38 else 39 { 40 int ii; 41 42 for (ii = 0; ii < 10; ii++) 43 fun2 (); 44 } 45} 46 47int 48main (void) 49{ 50 struct s ss; 51 52 fun1 (0, 0, 200, ss); 53 return 0; 54} 55