82_attribs_position.c 386 B

1234567891011121314151617181920
  1. typedef unsigned short uint16_t;
  2. typedef unsigned char uint8_t;
  3. typedef union Unaligned16a {
  4. uint16_t u;
  5. uint8_t b[2];
  6. } __attribute__((packed)) Unaligned16a;
  7. typedef union __attribute__((packed)) Unaligned16b {
  8. uint16_t u;
  9. uint8_t b[2];
  10. } Unaligned16b;
  11. extern void foo (void) __attribute__((stdcall));
  12. void __attribute__((stdcall)) foo (void)
  13. {
  14. }
  15. int main () { return 0; }