]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.base/skip.c
update copyright year range in GDB files
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / skip.c
CommitLineData
21b1f8d2 1/* This testcase is part of GDB, the GNU debugger.
1bfeeb0f 2
61baf725 3 Copyright 2011-2017 Free Software Foundation, Inc.
21b1f8d2
DE
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17
18#include <stdlib.h>
19
20int foo (void);
21int bar (void);
22int baz (int);
cce0e923 23void skip1_test_skip_file_and_function (void);
aa52b601 24void test_skip_file_and_function (void);
21b1f8d2
DE
25
26int
27main ()
1bfeeb0f 28{
aa52b601
DE
29 int x;
30
21b1f8d2 31 /* Use comma operator to sequence evaluation of bar and foo. */
aa52b601
DE
32 x = baz ((bar (), foo ()));
33
34 test_skip_file_and_function ();
35
36 return 0;
1bfeeb0f
JL
37}
38
21b1f8d2
DE
39int
40foo ()
1bfeeb0f
JL
41{
42 return 0;
43}
cce0e923
DE
44
45static void
46test_skip (void)
47{
48}
49
50static void
51end_test_skip_file_and_function (void)
52{
53 abort ();
54}
55
56void
57test_skip_file_and_function (void)
58{
59 test_skip ();
60 skip1_test_skip_file_and_function ();
61 end_test_skip_file_and_function ();
62}