1 // bindgen-flags: --wrap-unsafe-ops --no-layout-tests 2 3 class C { 4 int a; 5 // More than rust limits (32) 6 char big_array[33]; 7 }; 8 9 class C_with_zero_length_array { 10 int a; 11 // More than rust limits (32) 12 char big_array[33]; 13 char zero_length_array[0]; 14 }; 15 16 class C_with_zero_length_array_2 { 17 int a; 18 char zero_length_array[0]; 19 }; 20 21 class C_with_incomplete_array { 22 int a; 23 // More than rust limits (32) 24 char big_array[33]; 25 char incomplete_array[]; 26 }; 27 28 class C_with_incomplete_array_2 { 29 int a; 30 char incomplete_array[]; 31 }; 32 33 class C_with_zero_length_array_and_incomplete_array { 34 int a; 35 // More than rust limits (32) 36 char big_array[33]; 37 char zero_length_array[0]; 38 char incomplete_array[]; 39 }; 40 41 class C_with_zero_length_array_and_incomplete_array_2 { 42 int a; 43 char zero_length_array[0]; 44 char incomplete_array[]; 45 }; 46 47 class WithDtor { 48 int b; 49 ~WithDtor()50 ~WithDtor() {} 51 }; 52 53 class IncompleteArrayNonCopiable { 54 void* whatever; 55 C incomplete_array[]; 56 }; 57 58 union Union { 59 float d; 60 int i; 61 }; 62 63 class WithUnion { 64 Union data; 65 }; 66 67 class RealAbstractionWithTonsOfMethods { 68 void foo(); 69 public: 70 void bar() const; 71 void bar(); 72 void bar(int foo); 73 static void sta(); 74 }; 75