[PATCH] D57442: [OpenGL] Fix test on PPC after r352540

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 30 03:18:03 PST 2019


ioeric created this revision.
ioeric added a reviewer: bkramer.
Herald added a subscriber: Anastasia.

Specify -triple like test/SemaOpenCL/logical-ops.cl. Otherwise, this test fails
on PPC.


Repository:
  rC Clang

https://reviews.llvm.org/D57442

Files:
  test/SemaOpenCL/format-strings-fixit.cl


Index: test/SemaOpenCL/format-strings-fixit.cl
===================================================================
--- test/SemaOpenCL/format-strings-fixit.cl
+++ test/SemaOpenCL/format-strings-fixit.cl
@@ -1,7 +1,7 @@
 // RUN: cp %s %t
-// RUN: %clang_cc1 -cl-std=CL1.2 -pedantic -Wall -fixit %t
-// RUN: %clang_cc1 -cl-std=CL1.2 -fsyntax-only -pedantic -Wall -Werror %t
-// RUN: %clang_cc1 -cl-std=CL1.2 -E -o - %t | FileCheck %s
+// RUN: %clang_cc1 -cl-std=CL1.2 -pedantic -Wall -fixit %t -triple x86_64-unknown-linux-gnu
+// RUN: %clang_cc1 -cl-std=CL1.2 -fsyntax-only -pedantic -Wall -Werror %t -triple x86_64-unknown-linux-gnu
+// RUN: %clang_cc1 -cl-std=CL1.2 -E -o - %t -triple x86_64-unknown-linux-gnu | FileCheck %s
 
 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57442.184269.patch
Type: text/x-patch
Size: 777 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190130/f48a6494/attachment.bin>


More information about the cfe-commits mailing list