vla-stub.c revision 1.5
1126353Smlaier/* This testcase is part of GDB, the GNU debugger. 2126353Smlaier 3126353Smlaier Copyright 2014-2017 Free Software Foundation, Inc. 4126353Smlaier 5126353Smlaier This program is free software; you can redistribute it and/or modify 6126353Smlaier it under the terms of the GNU General Public License as published by 7126353Smlaier the Free Software Foundation; either version 3 of the License, or 8126353Smlaier (at your option) any later version. 9126353Smlaier 10126353Smlaier This program is distributed in the hope that it will be useful, 11126353Smlaier but WITHOUT ANY WARRANTY; without even the implied warranty of 12126353Smlaier MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13126353Smlaier GNU General Public License for more details. 14126353Smlaier 15126353Smlaier You should have received a copy of the GNU General Public License 16126353Smlaier along with this program. If not, see <http://www.gnu.org/licenses/>. */ 17126353Smlaier 18126353Smlaierstruct dynamic_struct; 19126353Smlaiertypedef struct dynamic_struct dynamic_struct_t; 20126353Smlaier 21126353Smlaierstruct static_struct 22126353Smlaier{ 23126353Smlaier int field; 24126353Smlaier}; 25126353Smlaiertypedef struct static_struct static_struct_t; 26126353Smlaier 27126353Smlaierstruct local_struct 28126353Smlaier{ 29126353Smlaier static_struct_t here; 30126353Smlaier dynamic_struct_t *ptr; 31126353Smlaier} local_struct; 32126353Smlaier 33127082Sobrienint 34127082Sobrienmain (void) 35127082Sobrien{ 36126353Smlaier return 0; 37126353Smlaier} 38126353Smlaier