1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s 2*67e74705SXin Li struct foo { 3*67e74705SXin Li int a; 4*67e74705SXin Li }; 5*67e74705SXin Li main()6*67e74705SXin Liint main() { 7*67e74705SXin Li struct foo xxx; 8*67e74705SXin Li int i; 9*67e74705SXin Li 10*67e74705SXin Li xxx = (struct foo)1; // expected-error {{used type 'struct foo' where arithmetic or pointer type is required}} 11*67e74705SXin Li i = (int)xxx; // expected-error {{operand of type 'struct foo' where arithmetic or pointer type is required}} 12*67e74705SXin Li } 13