1*1424dfb3Schristos /* This testcase is part of GDB, the GNU debugger. 2*1424dfb3Schristos 3*1424dfb3Schristos Copyright 2019-2020 Free Software Foundation, Inc. 4*1424dfb3Schristos 5*1424dfb3Schristos This program is free software; you can redistribute it and/or modify 6*1424dfb3Schristos it under the terms of the GNU General Public License as published by 7*1424dfb3Schristos the Free Software Foundation; either version 3 of the License, or 8*1424dfb3Schristos (at your option) any later version. 9*1424dfb3Schristos 10*1424dfb3Schristos This program is distributed in the hope that it will be useful, 11*1424dfb3Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 12*1424dfb3Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*1424dfb3Schristos GNU General Public License for more details. 14*1424dfb3Schristos 15*1424dfb3Schristos You should have received a copy of the GNU General Public License 16*1424dfb3Schristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 17*1424dfb3Schristos 18*1424dfb3Schristos /* The code below must remain identical to the block of code in 19*1424dfb3Schristos step-and-next-inline.cc. */ 20*1424dfb3Schristos 21*1424dfb3Schristos #include <stdlib.h> 22*1424dfb3Schristos 23*1424dfb3Schristos struct tree 24*1424dfb3Schristos { 25*1424dfb3Schristos volatile int x; 26*1424dfb3Schristos volatile int z; 27*1424dfb3Schristos }; 28*1424dfb3Schristos 29*1424dfb3Schristos #define TREE_TYPE(NODE) (*tree_check (NODE, 0)) 30*1424dfb3Schristos 31*1424dfb3Schristos inline tree * tree_check(tree * t,int i)32*1424dfb3Schristostree_check (tree *t, int i) 33*1424dfb3Schristos { 34*1424dfb3Schristos if (t->x != i) 35*1424dfb3Schristos abort(); 36*1424dfb3Schristos tree *x = t; 37*1424dfb3Schristos return x; 38*1424dfb3Schristos } 39