summaryrefslogtreecommitdiffstats
path: root/test/Sema/invalid-init-diag.c
blob: a215fa7c254ba83410a6a778dc0f1123fcb0e61e (plain)
1
2
3
4
// RUN: %clang_cc1 %s -verify -fsyntax-only

int a;
struct {int x;} x = a; // expected-error {{incompatible type initializing 'int', expected 'struct <anonymous>'}}
OpenPOWER on IntegriCloud