Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / bug-3389.c
blob46afc41421b6011adc713f2043490f570dadeeb4
1 /* bug-3389.c
3 Missing diagnostic on multiple declarations, some banked some not.
4 */
6 /*-------------------------------------------------------------------------
7 SDCCgen.c - source files for target code generation common functions
9 Copyright (C) 2019, Paul Chandler (SourceForge user under4mhz)
10 Copyright (C) 2022, Philipp Klaus Krause (SourceForge user spth)
12 This program is free software; you can redistribute it and/or modify it
13 under the terms of the GNU General Public License as published by the
14 Free Software Foundation; either version 2, or (at your option) any
15 later version.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 -------------------------------------------------------------------------*/
27 #ifdef TEST1
28 #if !defined(__SDCC_mcs51) && !defined(__SDCC_z80) && !defined(__SDCC_sm83)
29 #define __banked
30 #define __nonbanked
31 #endif
33 typedef struct { char x; } maths_point_i8;
35 typedef maths_point_i8 PointType;
37 typedef struct moongate_data {
38 unsigned char active;
39 } MoongateData;
42 void MoongatePositionGet( unsigned char gate, PointType *position ) __banked; /* IGNORE */
44 void MoongatePositionGet( unsigned char, PointType *position ) __nonbanked; /* ERROR(SDCC_mcs51|SDCC_z80|SDCC_sm83) */
46 #endif