13830Ssos/* This testcase is part of GDB, the GNU debugger.
21987Swollman
31987Swollman   Copyright 2015-2020 Free Software Foundation, Inc.
41987Swollman
53830Ssos   This program is free software; you can redistribute it and/or modify
62365Sbde   it under the terms of the GNU General Public License as published by
71987Swollman   the Free Software Foundation; either version 3 of the License, or
81987Swollman   (at your option) any later version.
91987Swollman
101987Swollman   This program is distributed in the hope that it will be useful,
111987Swollman   but WITHOUT ANY WARRANTY; without even the implied warranty of
121987Swollman   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
132365Sbde   GNU General Public License for more details.
142365Sbde
151987Swollman   You should have received a copy of the GNU General Public License
161987Swollman   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
171987Swollman
182365Sbde#include <stdlib.h>
192699Swollman
202699Swollmanvoid __attribute__((noreturn))
213026Srgrimesnoreturn_func (void)
222699Swollman{
231987Swollman  abort ();
241987Swollman}
252365Sbde
261987Swollmanint
272699Swollmanmain (void)
281987Swollman{
291987Swollman  noreturn_func ();
301987Swollman  return 0;
311987Swollman}
32