blob: 806cb800fc242fce79bc288113da9a78c9e35701 [file] [log] [blame]
// RUN: clang -parse-ast-check %s
struct foo {
int a;
};
int main() {
struct foo xxx;
int i;
xxx = (struct foo)1; // expected-error {{used type 'struct foo' where arithmetic or pointer type is required}}
i = (int)xxx; // expected-error {{operand of type 'struct foo' where arithmetic or pointer type is required}}
}