diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-18 00:31:54 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-18 00:31:54 +0200 |
| commit | 268a53de823a6750d6256ee1fb1e7707b4b45740 (patch) | |
| tree | 42c1799a9a82b2f7d9790ee9fe181d72a7274751 /support/regression/tests/addrspace.c | |
| download | sdcc-gas-268a53de823a6750d6256ee1fb1e7707b4b45740.tar.gz | |
sdcc-3.9.0 fork implementing GNU assembler syntax
This fork aims to provide better support for stm8-binutils
Diffstat (limited to 'support/regression/tests/addrspace.c')
| -rw-r--r-- | support/regression/tests/addrspace.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/support/regression/tests/addrspace.c b/support/regression/tests/addrspace.c new file mode 100644 index 0000000..cede7f9 --- /dev/null +++ b/support/regression/tests/addrspace.c @@ -0,0 +1,29 @@ +/** addrsapce.c +*/ +#include <testfwk.h> +#include <stdlib.h> + +void set_a(void) +{ +} + +void set_b(void) +{ +} + +#if !defined(PORT_HOST) +__addressmod set_a space_a; +__addressmod set_b const space_b; +#endif + +/* We don't really test for named address spaces working here, + since that would require support in the simulators, and would + make the test target-specific. + But we can test that things that should compile compile, and that + the named address spaces don't break other things. +*/ + +void testSpace(void) +{ +} + |
