00001 /* occured at type-specifier / type-qualifier */ 00002 int __attribute__ ((aligned (16))) x2 = 0; 00003 __attribute__ ((aligned (16))) int x3 = 0; 00004 __attribute__((used)) int y2 = 0; 00005 00006 00007 00008 00009 /* init-declarator */ 00010 int x1 __attribute__ ((aligned (16))) = 0; 00011 int x6, x7 __attribute__ ((aligned (16))); 00012 00013 int f(int a) __attribute__((always_inline)); 00014 00015 int 00016 f(int a) { 00017 return a + 1; 00018 } 00019 00020 00021 00022 00023 /* init-declarator (after comma : reset position) */ 00024 int x4, __attribute__ ((aligned (16))) x5; 00025 00026 00027 00028 00029 /* after 'struct/union/enum' keyword */ 00030 struct __attribute__((packed)) S1 { 00031 char c; 00032 int i; 00033 }; 00034 00035 union __attribute__((__packed__)) U1 { 00036 char c; 00037 int i; 00038 }; 00039 00040 /* enum __attribute__((aligned(16))) E1 { */ 00041 /* A1, */ 00042 /* B1, */ 00043 /* C1, */ 00044 /* }; */ 00045 00046 00047 /* type-specifier / type-qualifier */ 00048 struct S3 { 00049 char c; 00050 int i; 00051 } __attribute__((packed)); 00052 00053 struct S4 { 00054 char c; 00055 int i; 00056 } __attribute__((__packed__)); 00057 00058 struct S5 __attribute__((__packed__)); 00059 00060 00061 00062 /* struct declarator */ 00063 struct S5 { 00064 char c; 00065 int i __attribute__((aligned(16))); 00066 long l1 __attribute__((aligned(16))), l2 __attribute__((aligned(16))); 00067 }; 00068 00069 00070 00071 00072 int 00073 main() 00074 { 00075 /* type-specifier / type-qualifier */ 00076 return (int __attribute__((aligned(16)))) (x1); 00077 } 00078 00079