[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Analysis / stack-block-returned.cpp
blob3d4637904179eba439e4cc2e0cf0ad15e50b3f54
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -fblocks -verify %s
3 typedef void (^bptr)(void);
5 bptr bf(int j) {
6 __block int i;
7 const bptr &qq = ^{ i=0; }; // expected-note {{binding reference variable 'qq' here}}
8 return qq; // expected-error {{returning block that lives on the local stack}}