Use CXXCOMPILE in gold/testsuite/Makefile for c++ testcases
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / style.c
CommitLineData
bdfc1e8a
TV
1
2
3/* The leading newlines here are intentional, do not remove. They are used to
4 test that the source highlighter doesn't strip them. */
b811d2c2 5/* Copyright 2018-2020 Free Software Foundation, Inc.
cbe56571
TT
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
6506371f
TT
20#define SOME_MACRO 23
21
3f0cbb04
TT
22enum etype
23{
24 VALUE_ONE = 1,
25 VALUE_TWO = 2
26};
27
28struct some_struct
29{
30 int int_field;
31 char *string_field;
32 enum etype e_field;
33};
34
35struct some_struct struct_value = { 23, "skidoo", VALUE_TWO };
36
046bebe1
TT
37int some_called_function (void)
38{
39 return 0;
40}
41
cbe56571
TT
42int
43main (int argc, char **argv)
44{
046bebe1 45 return some_called_function (); /* break here */
cbe56571 46}
This page took 0.246637 seconds and 4 git commands to generate.