diff options
| author | grischka <grischka> | 2014-09-23 12:30:08 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2014-09-23 12:30:08 +0200 |
| commit | 9d7fb3336049243a16ce20ba907946d1de9e1c0d (patch) | |
| tree | 9c0b9009b9447f0749a070a2d14df814b83bb15e /tccelf.c | |
| parent | 87d879aa7b3a75245e5e1a0fe15ba08105457df2 (diff) | |
| download | tinycc-9d7fb3336049243a16ce20ba907946d1de9e1c0d.tar.gz tinycc-9d7fb3336049243a16ce20ba907946d1de9e1c0d.tar.bz2 | |
tccgen: use lvalue as result from bitfield assignment
test case:
#include <stdio.h>
int main(int argc, char **argv)
{
struct _s { unsigned a:9, b:5, c:7; } _s, *s = &_s;
int n = 250;
s->a = s->b = s->c = n + 4;
printf("--> %d / %d / %d\n", s->a, s->b, s->c);
return 0;
}
before:
--> 254 / 30 / 126
now:
--> 30 / 30 / 126
Diffstat (limited to 'tccelf.c')
0 files changed, 0 insertions, 0 deletions
