summaryrefslogtreecommitdiffstats
path: root/test/Sema/invalid-init-diag.c
blob: dec7d6c18f8a955538a6016f48eaa8f382acdb56 (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