TinyC upgrade (#6593)
This commit is contained in:
parent
9c00f6decd
commit
d2c7d391c8
395 changed files with 68184 additions and 32394 deletions
19
tinyc/tests/tests2/82_attribs_position.c
Normal file
19
tinyc/tests/tests2/82_attribs_position.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
typedef unsigned short uint16_t;
|
||||
typedef unsigned char uint8_t;
|
||||
|
||||
typedef union Unaligned16a {
|
||||
uint16_t u;
|
||||
uint8_t b[2];
|
||||
} __attribute__((packed)) Unaligned16a;
|
||||
|
||||
typedef union __attribute__((packed)) Unaligned16b {
|
||||
uint16_t u;
|
||||
uint8_t b[2];
|
||||
} Unaligned16b;
|
||||
|
||||
extern void foo (void) __attribute__((stdcall));
|
||||
void __attribute__((stdcall)) foo (void)
|
||||
{
|
||||
}
|
||||
|
||||
int main () { return 0; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue