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

26
test/val/cc65091020.c Normal file
View File

@@ -0,0 +1,26 @@
/*
!!DESCRIPTION!! bit field bug
!!ORIGIN!! testsuite
!!LICENCE!! Public Domain
!!AUTHOR!! Johan Kotlinski
*/
#include <assert.h>
struct {
int foo : 7;
int bar : 4;
} baz = { 0, 2 };
int main() {
char bar = baz.bar;
assert(2 == bar);
printf("it works :)\n");
/* if not assert() */
return 0;
}
/* Assert fails. (SVN rev 4381) */