mirror of
https://github.com/frida/tinycc
synced 2024-11-28 10:33:07 +03:00
04418c7add
various cases of function type uses were broken by recent attribute refactoring, this fixes and adds testcases for them.
20 lines
386 B
C
20 lines
386 B
C
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; }
|