kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

attr_08_double_underscore.c (273B)


      1 /* Double-underscore spelling: __packed__ and __aligned__ should be
      2  * canonicalized to packed/aligned by the parser. */
      3 struct __attribute__((__packed__, __aligned__(4))) S {
      4   char c;
      5   int i;
      6 };
      7 
      8 int test_main(void) {
      9   struct S s;
     10   s.c = 0;
     11   s.i = 0;
     12   return s.i;
     13 }