Home | History | Annotate | Download | only in Sema

Lines Matching full:arithmetic

6   b++;       // expected-error {{arithmetic on a pointer to an incomplete type}}
7 b += 1; // expected-error {{arithmetic on a pointer to an incomplete type}}
8 c++; // expected-warning {{arithmetic on a pointer to void is a GNU extension}}
9 c += 1; // expected-warning {{arithmetic on a pointer to void is a GNU extension}}
10 c--; // expected-warning {{arithmetic on a pointer to void is a GNU extension}}
11 c -= 1; // expected-warning {{arithmetic on a pointer to void is a GNU extension}}
13 b = 1+b; // expected-error {{arithmetic on a pointer to an incomplete type}}
16 d += 1; // expected-warning {{arithmetic on a pointer to the function type 'void (S *, void *)' is a GNU extension}}
17 d++; // expected-warning {{arithmetic on a pointer to the function type 'void (S *, void *)' is a GNU extension}}
18 d--; // expected-warning {{arithmetic on a pointer to the function type 'void (S *, void *)' is a GNU extension}}
19 d -= 1; // expected-warning {{arithmetic on a pointer to the function type 'void (S *, void *)' is a GNU extension}}
20 (void)(1 + d); // expected-warning {{arithmetic on a pointer to the function type 'void (S *, void *)' is a GNU extension}}