[PATCH] D109366: [OpenCL] Tests C++ for OpenCL 2021 version macros
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 9 03:41:34 PDT 2021
Anastasia added inline comments.
================
Comment at: clang/test/Preprocessor/predefined-macros.c:138
// RUN: | FileCheck -match-full-lines %s --check-prefix=CHECK-FRM
-// RUN: %clang_cc1 %s -E -dM -o - -x cl -cl-std=clc++ \
+// RUN: %clang_cc1 %s -E -dM -o - -x cl -cl-std=clc++1.0 \
// RUN: | FileCheck -match-full-lines %s --check-prefix=CHECK-CLCPP10
----------------
I think we should add one extra line with `-cl-std=clc++` because this is probably the only way we can test that it now maps to version 1.0.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109366/new/
https://reviews.llvm.org/D109366
More information about the cfe-commits
mailing list