From: Tom Stellard Date: Thu, 16 Oct 2014 15:29:17 +0000 (+0000) Subject: OpenCL: Add -ffake-address-space-map to a test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=575a318f4fb9b2d1b5a488c3441a3be6a03d58dd;p=clang 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 --- 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) {