Lines Matching refs:emp_1
5 struct emp_1 { // expected-warning {{empty struct has size 0 in C, size 1 in C++}}
30 struct emp_1 f1;
34 struct emp_1 f1;
38 struct emp_1 f1;
43 struct emp_1 *func_1p(struct emp_1 *x) { return x - 5; }
46 struct emp_1 v[1];
47 return v - v; // expected-warning {{subtraction of pointers to type 'struct emp_1' of zero size has undefined behavior}}
50 int func_2(struct emp_1 *x) {
51 return 1 + x - x; // expected-warning {{subtraction of pointers to type 'struct emp_1' of zero size has undefined behavior}}
54 int func_3(struct emp_1 *x, struct emp_1 *y) {
55 return x - y; // expected-warning {{subtraction of pointers to type 'struct emp_1' of zero size has undefined behavior}}
58 int func_4(struct emp_1 *x, const struct emp_1 *y) {
59 return x - y; // expected-warning {{subtraction of pointers to type 'struct emp_1' of zero size has undefined behavior}}
62 int func_5(volatile struct emp_1 *x, const struct emp_1 *y) {
63 return x - y; // expected-warning {{subtraction of pointers to type 'struct emp_1' of zero size has undefined behavior}}
77 int func_8(struct emp_1 (*x)[10], struct emp_1 (*y)[10]) {
78 return x - y; // expected-warning {{subtraction of pointers to type 'struct emp_1 [10]' of zero size has undefined behavior}}
81 int func_9(struct emp_1 (*x)[], struct emp_1 (*y)[]) {
82 return x - y; // expected-error {{arithmetic on a pointer to an incomplete type 'struct emp_1 []'}}