Sign in
fuchsia
/
third_party
/
swift-clang
/
refs/tags/swift-3.0-PREVIEW-5
/
.
/
test
/
CodeGenOpenCL
/
constant-addr-space-globals.cl
blob: 92fb9790b5fb254ef0a8357d164865d79cf3f3f5 [
file
] [
log
] [
blame
]
//
RUN
:
%
clang_cc1
%
s -ffake-address-space-map -emit-llvm -o
-
|
FileCheck
%
s
//
CHECK
:
@
array
=
addrspace
(
{{[
0-9
]+}}
)
constant
__constant float array
[
2
]
=
{
0.0
f
,
1.0
f
}
;
kernel void test
(
global float
*
out
)
{
*
out
=
array
[
0
]
;
}