blob: 3d4637904179eba439e4cc2e0cf0ad15e50b3f54 [file] [log] [blame]
// RUN: %clang_analyze_cc1 -analyzer-checker=core -fblocks -verify %s
typedef void (^bptr)(void);
bptr bf(int j) {
__block int i;
const bptr &qq = ^{ i=0; }; // expected-note {{binding reference variable 'qq' here}}
return qq; // expected-error {{returning block that lives on the local stack}}
}