mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

Built libdispatch with clang interface stubs. Ran into some block related issues. Basically VarDecl symbols can leak out because I wasn't checking the case where a VarDecl is contained inside a BlockDecl (versus a method or function). This patch checks that a VarDecl is not a child decl of a BlockDecl. This patch also does something very similar for c++ lambdas as well. Differential Revision: https://reviews.llvm.org/D71301
10 lines
295 B
C
10 lines
295 B
C
// RUN: %clang_cc1 -emit-interface-stubs -fblocks -o - %s | FileCheck %s
|
|
|
|
// CHECK: --- !experimental-ifs-v1
|
|
// CHECK-NEXT: IfsVersion: 1.0
|
|
// CHECK-NEXT: Triple:
|
|
// CHECK-NEXT: ObjectFileFormat: ELF
|
|
// CHECK-NEXT: Symbols:
|
|
// CHECK-NEXT: ...
|
|
static void (^f)(void*) = ^(void* data) { int i; };
|