1 /* 2 * Compile this to emit BTF debug info with: 3 * 4 * gcc -c -gbtf test0.c 5 */ 6 7 typedef enum ENUM_TYPE 8 { 9 E0_ENUM_TYPE = 0, 10 E1_ENUM_TYPE= 1, 11 E2_ENUM_TYPE= 2 12 } ENUM_TYPE; 13 14 typedef enum ANOTHER_ENUM_TYPE 15 { 16 E0_ANOTHER_ENUM_TYPE = 0, 17 E1_ANOTHER_ENUM_TYPE= 1, 18 E2_ANOTHER_ENUM_TYPE= 2 19 } ANOTHER_ENUM_TYPE; 20 21 typedef union u_type 22 { 23 ENUM_TYPE *m0; 24 ANOTHER_ENUM_TYPE *m1; 25 char *m2; 26 } u_type; 27 28 typedef struct foo_type 29 { 30 int *m0; 31 volatile char *m1; 32 unsigned *m2; 33 const volatile unsigned char *m3; 34 float m4[10]; 35 volatile const u_type *m5; 36 } foo_type; 37 38 int fn0(foo_type * p,int a)39fn0(foo_type* p, int a) 40 { 41 *p->m0 = a; 42 return a; 43 } 44 45 struct foo_type foos[2] = {0}; 46