invalid-init-diag.c revision 08a41901e18aeb91b87d031b93df70374af02564
1// RUN: %clang_cc1 %s -verify -fsyntax-only
2
3int a;
4struct {int x;} x = a; // expected-error {{with an expression of incompatible type 'int'}}
5