llvm-for-llvmta/tools/clang/test/Sema/invalid-init-diag.c

5 lines
143 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 %s -verify -fsyntax-only
int a;
struct {int x;} x = a; // expected-error {{with an expression of incompatible type 'int'}}