Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:X1

24 struct X1 { virtual void f(); } x1;
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); // \
40 memmove(&x1, 0, sizeof x1); // \
41 // expected-warning{{destination for this 'memmove' call is a pointer to dynamic class 'X1'; vtable pointer will be overwritten}} \
43 memmove(0, &x1, sizeof x1); // \
44 // expected-warning{{source of this 'memmove' call is a pointer to dynamic class 'X1'; vtable pointer will be moved}} \
46 memcpy(&x1, 0, sizeof x1); // \
47 // expected-warning{{destination for this 'memcpy' call is a pointer to dynamic class 'X1'; vtable pointer will be overwritten}} \
49 memcpy(0, &x1, sizeof x1); // \
50 // expected-warning{{source of this 'memcpy' call is a pointer to dynamic class 'X1'; vtable pointer will be copied}} \
52 memcmp(&x1, 0, sizeof x1); // \
53 // expected-warning{{first operand of this 'memcmp' call is a pointer to dynamic class 'X1'; vtable pointer will be compared}} \
55 memcmp(0, &x1, sizeof x1); // \
56 // expected-warning{{second operand of this 'memcmp' call is a pointer to dynamic class 'X1'; vtable pointer will be compared}} \
59 __builtin_memset(&x1, 0, sizeof x1); // \
66 __builtin_memmove(&x1, 0, sizeof x1); // \
69 __builtin_memmove(0, &x1, sizeof x1); // \
72 __builtin_memcpy(&x1, 0, sizeof x1); // \
75 __builtin_memcpy(0, &x1, sizeof x1); // \
79 __builtin___memset_chk(&x1, 0, sizeof x1, sizeof x1); // \
86 __builtin___memmove_chk(&x1, 0, sizeof x1, sizeof x1); // \
89 __builtin___memmove_chk(0, &x1, sizeof x1, sizeof x1); // \
92 __builtin___memcpy_chk(&x1, 0, sizeof x1, sizeof x1); // \
95 __builtin___memcpy_chk(0, &x1, sizeof x1, sizeof x1); // \
99 // expected-warning@+2 {{destination for this 'memset' call is a pointer to class containing a dynamic class 'X1'}}
102 // expected-warning@+2 {{destination for this 'memset' call is a pointer to class containing a dynamic class 'X1'}}
105 // expected-warning@+2 {{destination for this 'memset' call is a pointer to class containing a dynamic class 'X1'}}
128 (void)sizeof memset(&x1, 0, sizeof x1);
131 if (false) memset(&x1, 0, sizeof x1);
137 N::memset(&x1, 0, sizeof x1);