[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / invalid-init-diag.c
blob3e4870e0cab112f7cbf47ea8175265fb18075865
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
3 int a;
4 struct {int x;} x = a; // expected-error {{with an expression of incompatible type 'int'}}