[pp-trace] Fix test for OpenCL pragmas.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 22 Feb 2021 14:22:02 +0000 (14:22 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 22 Feb 2021 14:28:45 +0000 (14:28 +0000)
After updating clang driver to include standard
OpenCL headers implicitly, the output being checked
in the test does not match because the implicit
header contains other pragmas. The test does not
aim to use the header and therefore it has to be
updated passing '-cl-no-stdinc' command-line flag.

This fixes failing bots.

clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp

index 8ba26c3b739624a3656e9083972a2069e0197e4d..31f61027994f768801b24750ea45caeae7cd9711 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: pp-trace -callbacks '*,-FileChanged,-MacroDefined' %s -- -x cl | FileCheck --strict-whitespace %s
+// RUN: pp-trace -callbacks '*,-FileChanged,-MacroDefined' %s -- -x cl -cl-no-stdinc | FileCheck --strict-whitespace %s
 
 #pragma OPENCL EXTENSION all : disable
 #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : disable