Lines Matching defs:x1
24 struct X1 { virtual void f(); } x1, x1arr[2];
27 struct ContainsDynamic { X1 dynamic; } contains_dynamic;
29 struct ContainsArrayDynamic { X1 dynamic[1]; } contains_array_dynamic;
30 struct ContainsPointerDynamic { X1 *dynamic; } contains_pointer_dynamic;
33 memset(&x1, 0, sizeof x1); // \
44 memmove(&x1, 0, sizeof x1); // \
45 // expected-warning{{destination for this 'memmove' call is a pointer to dynamic class 'X1'; vtable pointer will be overwritten}} \
47 memmove(0, &x1, sizeof x1); // \
48 // expected-warning{{source of this 'memmove' call is a pointer to dynamic class 'X1'; vtable pointer will be moved}} \
50 memcpy(&x1, 0, sizeof x1); // \
51 // expected-warning{{destination for this 'memcpy' call is a pointer to dynamic class 'X1'; vtable pointer will be overwritten}} \
53 memcpy(0, &x1, sizeof x1); // \
54 // expected-warning{{source of this 'memcpy' call is a pointer to dynamic class 'X1'; vtable pointer will be copied}} \
56 memcmp(&x1, 0, sizeof x1); // \
57 // expected-warning{{first operand of this 'memcmp' call is a pointer to dynamic class 'X1'; vtable pointer will be compared}} \
59 memcmp(0, &x1, sizeof x1); // \
60 // expected-warning{{second operand of this 'memcmp' call is a pointer to dynamic class 'X1'; vtable pointer will be compared}} \
63 __builtin_memset(&x1, 0, sizeof x1); // \
70 __builtin_memmove(&x1, 0, sizeof x1); // \
73 __builtin_memmove(0, &x1, sizeof x1); // \
76 __builtin_memcpy(&x1, 0, sizeof x1); // \
79 __builtin_memcpy(0, &x1, sizeof x1); // \
83 __builtin___memset_chk(&x1, 0, sizeof x1, sizeof x1); // \
90 __builtin___memmove_chk(&x1, 0, sizeof x1, sizeof x1); // \
93 __builtin___memmove_chk(0, &x1, sizeof x1, sizeof x1); // \
96 __builtin___memcpy_chk(&x1, 0, sizeof x1, sizeof x1); // \
99 __builtin___memcpy_chk(0, &x1, sizeof x1, sizeof x1); // \
103 // expected-warning@+2 {{destination for this 'memset' call is a pointer to class containing a dynamic class 'X1'}}
106 // expected-warning@+2 {{destination for this 'memset' call is a pointer to class containing a dynamic class 'X1'}}
109 // expected-warning@+2 {{destination for this 'memset' call is a pointer to class containing a dynamic class 'X1'}}
132 (void)sizeof memset(&x1, 0, sizeof x1);
135 if (false) memset(&x1, 0, sizeof x1);
141 N::memset(&x1, 0, sizeof x1);