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:
Tom Stellard 2014-10-16 15:29:17 +00:00
parent 711028f718
commit 2391c35d79
1 changed files with 2 additions and 2 deletions

View 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) {