1
0
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:
jespergravgaard 2020-04-13 22:04:11 +02:00
parent cb07791eab
commit a84cb1a977
3 changed files with 15 additions and 0 deletions

View File

@ -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
View 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;
}