1// RUN: %clang_cc1 -emit-llvm -triple "spir-unknown-unknown" -O0 -cl-std=CL2.0 -o - %s | FileCheck %s 2 3constant int sz0 = 5; 4// CHECK: @sz0 = addrspace(2) constant i32 5 5const global int sz1 = 16; 6// CHECK: @sz1 = addrspace(1) constant i32 16 7const constant int sz2 = 8; 8// CHECK: @sz2 = addrspace(2) constant i32 8 9// CHECK: @testvla.vla2 = internal addrspace(3) global [8 x i16] undef 10 11kernel void testvla() 12{ 13 int vla0[sz0]; 14// CHECK: %vla0 = alloca [5 x i32] 15 char vla1[sz1]; 16// CHECK: %vla1 = alloca [16 x i8] 17 local short vla2[sz2]; 18} 19