[PATCH] D109366: [OpenCL] Tests C++ for OpenCL version macros

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 9 05:41:48 PDT 2021


Anastasia added inline comments.


================
Comment at: clang/test/Preprocessor/predefined-macros.c:139
 // RUN: %clang_cc1 %s -E -dM -o - -x cl -cl-std=clc++ \
+// RUN:   | FileCheck -match-full-lines %s --check-prefix=CHECK-CLCPP
+// RUN: %clang_cc1 %s -E -dM -o - -x cl -cl-std=clc++1.0 \
----------------
let's just reuse `--check-prefix=CHECK-CLCPP10` to avoid duplication. This will always need to map to some other version so it is unlikely we will ever need separate check lines for it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109366/new/

https://reviews.llvm.org/D109366



More information about the cfe-commits mailing list