freebsd-dev/test/Sema/invalid-init-diag.c
2010-05-04 16:12:48 +00:00

5 lines
143 B
C

// RUN: %clang_cc1 %s -verify -fsyntax-only
int a;
struct {int x;} x = a; // expected-error {{with an expression of incompatible type 'int'}}