[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / block-return-1.c
blob4b77f5a5ca68bcea4f5dd08813025808aa068355
1 // RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks
3 int j;
4 void foo(void) {
5 ^ (void) { if (j) return 1; }(); // expected-error {{non-void block does not return a value in all control paths}}