Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o - -ffake-address-space-map | FileCheck %s |
2 | |||||
3 | int test_func(constant char* foo); | ||||
4 | |||||
5 | kernel void str_array_decy() { | ||||
6 | test_func("Test string literal"); | ||||
7 | } | ||||
8 | |||||
Pirama Arumuga Nainar | 3ea9e33 | 2015-04-08 08:57:32 -0700 | [diff] [blame] | 9 | // CHECK: i8 addrspace(3)* getelementptr inbounds ([20 x i8], [20 x i8] addrspace(3)* |
Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 10 | // CHECK-NOT: addrspacecast |
11 |