1255767Sdes/* This testcase is part of GDB, the GNU debugger.
276259Sgreen
376259Sgreen   Copyright 2005, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
476259Sgreen
576259Sgreen   This program is free software; you can redistribute it and/or modify
676259Sgreen   it under the terms of the GNU General Public License as published by
792555Sdes   the Free Software Foundation; either version 3 of the License, or
876259Sgreen   (at your option) any later version.
976259Sgreen
1076259Sgreen   This program is distributed in the hope that it will be useful,
11162856Sdes   but WITHOUT ANY WARRANTY; without even the implied warranty of
12106130Sdes   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13162856Sdes   GNU General Public License for more details.
14162856Sdes
15162856Sdes   You should have received a copy of the GNU General Public License
16162856Sdes   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
1776259Sgreen
18162856Sdesstruct foo {
19162856Sdes  int x;
20162856Sdes};
2176259Sgreen
2276259Sgreentypedef struct foo *foz;
23162856Sdes
24162856Sdesstruct foo *foo_ptr;
2592555Sdesfoz foz_ptr;
26162856Sdes
27162856Sdesint
28162856Sdesmarker1 (void)
29162856Sdes{
30162856Sdes  return foo_ptr == foz_ptr;
31162856Sdes}
32162856Sdes
3376259Sgreenint
3476259Sgreenmain (void)
3576259Sgreen{
36162856Sdes  struct foo the_foo;
3776259Sgreen  foo_ptr = &the_foo;
38162856Sdes  foz_ptr = &the_foo;
3992555Sdes
4092555Sdes  return marker1 ();
4192555Sdes}
4292555Sdes