summaryrefslogtreecommitdiffstats
path: root/test/SemaOpenCL
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-10-16 15:29:17 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-10-16 15:29:17 +0000
commit575a318f4fb9b2d1b5a488c3441a3be6a03d58dd (patch)
tree5864ae45919c0ff2564bc3ac4c0822f23105cc7d /test/SemaOpenCL
parenteec240b1ce3fe37bccdb160c194ff1ffa820b32d (diff)
OpenCL: Add -ffake-address-space-map to a test
The ensures there is an explicit address space id in the output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaOpenCL')
-rw-r--r--test/SemaOpenCL/extern.cl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaOpenCL/extern.cl b/test/SemaOpenCL/extern.cl
index ee5e07237f..5b88d70793 100644
--- a/test/SemaOpenCL/extern.cl
+++ b/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) {