[clang] Add test for C++ DR2390
authorTimm Bäder <tbaeder@redhat.com>
Tue, 8 Feb 2022 10:12:28 +0000 (11:12 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Thu, 10 Feb 2022 13:52:30 +0000 (14:52 +0100)
commitef2c8274dfa216078436c6acfe0274a43a737242
treeaafd424d97d069724fca72f8b067066cfe9b79a8
parentce07de234b77dc6cc263cdf4081eace5761d6b5a
[clang] Add test for C++ DR2390

DR2390 clarifies that the argument to __has_cpp_attribute() needs to be
macro-expanded. Clang already supports this and tests it explicitly in
clang/test/Preprocessor/has_attribute.cpp.

Copy the test over to clang/test/CXX/drs/ so the make_cxx_drs script
picks it up.

Differential Revision: https://reviews.llvm.org/D119230
clang/test/CXX/drs/dr2390.cpp [new file with mode: 0644]