blob: 353aa3a9a083d458d6994beb25e5e6c93a26912e [file] [log] [blame]
Pekka Jaaskelainene94b0e12014-12-19 18:04:27 +00001// RUN: %clang_cc1 %s -emit-llvm -o - -ffake-address-space-map | FileCheck %s
2
3int test_func(constant char* foo);
4
5kernel void str_array_decy() {
6 test_func("Test string literal");
7}
8
Egor Churaev28f00aa2016-12-23 16:11:25 +00009// CHECK: i8 addrspace(2)* getelementptr inbounds ([20 x i8], [20 x i8] addrspace(2)*
Pekka Jaaskelainene94b0e12014-12-19 18:04:27 +000010// CHECK-NOT: addrspacecast
11