added tests as prepared by oliver

This commit is contained in:
mrdudz
2014-09-24 16:45:10 +02:00
committed by Ingo Korb
parent d75f9c2051
commit ca300826cf
121 changed files with 25206 additions and 0 deletions

27
test/ref/cc65091007.c Normal file
View File

@@ -0,0 +1,27 @@
/*
!!DESCRIPTION!!
!!ORIGIN!! testsuite
!!LICENCE!! Public Domain
!!AUTHOR!! Johan Kotlinski
*/
/*
This produces the compiler error "test.c(9): Error: Assignment to const"
Shouldn't be an error, should it? baz is const, bar isn't.
*/
typedef struct {
char foo;
} Bar;
int main() {
Bar bar;
Bar* const baz = &bar;
baz->foo = 1;
printf("it works :)\n");
return 0;
}