1*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 %s -emit-llvm -o - -ffake-address-space-map | FileCheck %s 2*0a6a1f1dSLionel Sambuc 3*0a6a1f1dSLionel Sambucint test_func(constant char* foo); 4*0a6a1f1dSLionel Sambuc 5*0a6a1f1dSLionel Sambuckernel void str_array_decy() { 6*0a6a1f1dSLionel Sambuc test_func("Test string literal"); 7*0a6a1f1dSLionel Sambuc} 8*0a6a1f1dSLionel Sambuc 9*0a6a1f1dSLionel Sambuc// CHECK: i8 addrspace(3)* getelementptr inbounds ([20 x i8] addrspace(3)* 10*0a6a1f1dSLionel Sambuc// CHECK-NOT: addrspacecast 11*0a6a1f1dSLionel Sambuc 12