]> granicus.if.org Git - clang/commitdiff
OpenCL: Add -ffake-address-space-map to a test
authorTom Stellard <thomas.stellard@amd.com>
Thu, 16 Oct 2014 15:29:17 +0000 (15:29 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 16 Oct 2014 15:29:17 +0000 (15:29 +0000)
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

test/SemaOpenCL/extern.cl

index ee5e07237f06dcc30b25973a83dbb4747983e5ea..5b88d70793f32cde8534f5772a2407ee734d878e 100644 (file)
@@ -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) {