mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-26 12:49:21 +00:00
Updated reference manual.
This commit is contained in:
parent
cb07791eab
commit
a84cb1a977
Binary file not shown.
@ -236,6 +236,12 @@ public class TestPrograms {
|
||||
compileAndCompare("register-0.c");
|
||||
}
|
||||
|
||||
// TODO: Fix this. Currently a volatile __address() variable can still be optimized away completely.
|
||||
//@Test
|
||||
//public void testAddress7() throws IOException, URISyntaxException {
|
||||
// compileAndCompare("address-7.c", log());
|
||||
//}
|
||||
|
||||
@Test
|
||||
public void testAddress6() throws IOException, URISyntaxException {
|
||||
compileAndCompare("address-6.c");
|
||||
|
9
src/test/kc/address-7.c
Normal file
9
src/test/kc/address-7.c
Normal file
@ -0,0 +1,9 @@
|
||||
// Test declaring a variable as at a hard-coded address
|
||||
// Changing border color using an __address variable
|
||||
|
||||
volatile char __address(0xd020) bgcol;
|
||||
|
||||
void main() {
|
||||
bgcol = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user