bolt/deps/llvm-18.1.8/clang/test/Sema/invalid-init-diag.c
2025-02-14 19:21:04 +01:00

4 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'}}