Author: Anastasia Stulova Date: 2021-02-22T14:28:45Z New Revision: b71add9777bed67e05206fa1fdb665f3e21a13ab
URL: https://github.com/llvm/llvm-project/commit/b71add9777bed67e05206fa1fdb665f3e21a13ab DIFF: https://github.com/llvm/llvm-project/commit/b71add9777bed67e05206fa1fdb665f3e21a13ab.diff LOG: [pp-trace] Fix test for OpenCL pragmas. 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. Added: Modified: clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp b/clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp index 8ba26c3b7396..31f61027994f 100644 --- a/clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp +++ b/clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits