Version macro definitions are tested for C++ for OpenCL when
explicit version is provided on command line via -cl-std flag.
Details
Details
- Reviewers
Anastasia - Commits
- rGad88632b6503: [OpenCL] Tests C++ for OpenCL version macros
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/test/Preprocessor/predefined-macros.c | ||
---|---|---|
138 | 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. |
clang/test/Preprocessor/predefined-macros.c | ||
---|---|---|
139 | 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. |
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.