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