1272343Sngie/* This testcase is part of GDB, the GNU debugger.
2272343Sngie
3272343Sngie   Copyright 2014-2020 Free Software Foundation, Inc.
4272343Sngie
5272343Sngie   Contributed by Intel Corp. <markus.t.metzger@intel.com>
6272343Sngie
7272343Sngie   This program is free software; you can redistribute it and/or modify
8272343Sngie   it under the terms of the GNU General Public License as published by
9272343Sngie   the Free Software Foundation; either version 3 of the License, or
10272343Sngie   (at your option) any later version.
11272343Sngie
12272343Sngie   This program is distributed in the hope that it will be useful,
13272343Sngie   but WITHOUT ANY WARRANTY; without even the implied warranty of
14272343Sngie   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15272343Sngie   GNU General Public License for more details.
16272343Sngie
17272343Sngie   You should have received a copy of the GNU General Public License
18272343Sngie   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19272343Sngie
20272343Sngiestatic int (*fun)(int);
21272343Sngie
22272343Sngieint
23272343Sngietest (void)
24272343Sngie{
25272343Sngie  return fun (42); /* test.call */
26272343Sngie}
27272343Sngie
28272343Sngieint
29272343Sngiemain (void)
30272343Sngie{
31272343Sngie  return test ();
32272343Sngie}
33272343Sngie