Clang Project

clang_source_code/test/Sema/invalid-init-diag.c
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