Commit | Line | Data |
---|---|---|
b1b60145 PA |
1 | /* -*- coding: utf-8 -*- */ |
2 | ||
3 | /* This testcase is part of GDB, the GNU debugger. | |
4 | ||
b811d2c2 | 5 | Copyright 2017-2020 Free Software Foundation, Inc. |
b1b60145 PA |
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 | */ | |
20 | ||
21 | /* UTF-8 "função1". */ | |
22 | #define FUNCAO1 fun\u00e7\u00e3o1 | |
23 | ||
24 | /* UTF-8 "função2". */ | |
25 | #define FUNCAO2 fun\u00e7\u00e3o2 | |
26 | ||
27 | /* UTF-8 "my_função". */ | |
28 | #define MY_FUNCAO my_fun\u00e7\u00e3o | |
29 | ||
30 | /* UTF-8 "num_€". */ | |
31 | #define NUM_EUROS num_\u20ac | |
32 | ||
33 | struct S | |
34 | { | |
35 | int NUM_EUROS; | |
36 | } g_s; | |
37 | ||
38 | void | |
39 | FUNCAO1 (void) | |
40 | { | |
41 | g_s.NUM_EUROS = 1000; | |
42 | } | |
43 | ||
44 | void | |
45 | FUNCAO2 (void) | |
46 | { | |
47 | g_s.NUM_EUROS = 1000; | |
48 | } | |
49 | ||
50 | void | |
51 | MY_FUNCAO (void) | |
52 | { | |
53 | } | |
54 | ||
55 | int NUM_EUROS = 2000; | |
56 | ||
57 | static void | |
58 | done () | |
59 | { | |
60 | } | |
61 | ||
62 | int | |
63 | main () | |
64 | { | |
65 | FUNCAO1 (); | |
66 | done (); | |
67 | FUNCAO2 (); | |
68 | MY_FUNCAO (); | |
69 | ||
70 | return 0; | |
71 | } |