blob: 4c780da9bca4c173a09df07dd963646288d2a955 [file] [log] [blame]
// RUN: %clang_cc1 -verify -pedantic -std=c99 %s
void func(void) {
_Complex float cf;
_Complex double cd;
_Complex long double cld;
++cf; // expected-warning {{'++' on an object of complex type is a C2y extension}}
++cd; // expected-warning {{'++' on an object of complex type is a C2y extension}}
++cld; // expected-warning {{'++' on an object of complex type is a C2y extension}}
--cf; // expected-warning {{'--' on an object of complex type is a C2y extension}}
--cd; // expected-warning {{'--' on an object of complex type is a C2y extension}}
--cld; // expected-warning {{'--' on an object of complex type is a C2y extension}}
cf++; // expected-warning {{'++' on an object of complex type is a C2y extension}}
cd++; // expected-warning {{'++' on an object of complex type is a C2y extension}}
cld++; // expected-warning {{'++' on an object of complex type is a C2y extension}}
cf--; // expected-warning {{'--' on an object of complex type is a C2y extension}}
cd--; // expected-warning {{'--' on an object of complex type is a C2y extension}}
cld--; // expected-warning {{'--' on an object of complex type is a C2y extension}}
}