forked from OSchip/llvm-project
OpenCL: Add -ffake-address-space-map to a test
The ensures there is an explicit address space id in the output. llvm-svn: 219928
This commit is contained in:
parent
711028f718
commit
2391c35d79
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clang_cc1 -x cl -cl-std=CL1.2 -emit-llvm %s -o - -verify | FileCheck %s
|
||||
// RUN: %clang_cc1 -x cl -cl-std=CL1.2 -emit-llvm -ffake-address-space-map %s -o - -verify | FileCheck %s
|
||||
// expected-no-diagnostics
|
||||
|
||||
// CHECK: @foo = external global float
|
||||
// CHECK: @foo = external addrspace(3) global float
|
||||
extern constant float foo;
|
||||
|
||||
kernel void test(global float* buf) {
|
||||
|
|
Loading…
Reference in New Issue