diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2014-10-16 15:29:17 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2014-10-16 15:29:17 +0000 |
| commit | 2391c35d7974398d3f8290e2283034c3cba76988 (patch) | |
| tree | 6ee495698229794726d98490b4b39c147bdfc696 | |
| parent | 711028f718b6e7a3c666519f9d98f403eaf9c96b (diff) | |
| download | bcm5719-llvm-2391c35d7974398d3f8290e2283034c3cba76988.tar.gz bcm5719-llvm-2391c35d7974398d3f8290e2283034c3cba76988.zip | |
OpenCL: Add -ffake-address-space-map to a test
The ensures there is an explicit address space id in the output.
llvm-svn: 219928
| -rw-r--r-- | clang/test/SemaOpenCL/extern.cl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaOpenCL/extern.cl b/clang/test/SemaOpenCL/extern.cl index ee5e07237f0..5b88d70793f 100644 --- a/clang/test/SemaOpenCL/extern.cl +++ b/clang/test/SemaOpenCL/extern.cl @@ -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) { |

