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 } ENUM_TYPE; 12 13 typedef enum ANOTHER_ENUM_TYPE 14 { 15 E0_ANOTHER_ENUM_TYPE = 0, 16 E1_ANOTHER_ENUM_TYPE= 1 17 } ANOTHER_ENUM_TYPE; 18 19 typedef union u_type 20 { 21 ENUM_TYPE *m0; 22 ANOTHER_ENUM_TYPE *m1; 23 } u_type; 24 25 typedef struct foo_type 26 { 27 const int *m0; 28 volatile char *m1; 29 unsigned *m2; 30 const volatile unsigned char *m3; 31 float m4[10]; 32 volatile const u_type *m5; 33 } foo_type; 34 35 void fn0(const foo_type * p)36fn0(const foo_type* p __attribute__((unused))) 37 { 38 } 39 40 struct foo_type foos[2] = {0}; 41