1// RUN: %clang_cc1 %s -cl-std=CL2.0 -emit-llvm -o - -O0 -triple spir-unknown-unknown | FileCheck -check-prefix=GENERIC -check-prefix=COMMON %s 2// RUN: %clang_cc1 %s -cl-std=CL2.0 -emit-llvm -o - -O0 -triple amdgcn-amd-amdhsa-opencl | FileCheck -check-prefix=AMD -check-prefix=COMMON %s 3 4// Checking for null instead of @__NSConcreteGlobalBlock symbol 5// COMMON: @__block_literal_global = internal addrspace(1) constant { i8**, i32, i32, i8*, %struct.__block_descriptor addrspace(2)* } { i8** null 6void (^block_A)(local void *) = ^(local void *a) { 7 return; 8}; 9 10void foo(){ 11 int i; 12// Checking for null instead of @_NSConcreteStackBlock symbol 13// COMMON: store i8* null, i8** %block.isa 14 int (^ block_B)(void) = ^{ 15 return i; 16 }; 17} 18