[clang] 8bda8cf - [clang][NFC] Fix buildbot failure in drs/23xx.cpp

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 09:58:54 PST 2024


Author: Vlad Serebrennikov
Date: 2024-02-15T20:58:44+03:00
New Revision: 8bda8cfae6aa3c32cca7997ab64771e6a78f3e61

URL: https://github.com/llvm/llvm-project/commit/8bda8cfae6aa3c32cca7997ab64771e6a78f3e61
DIFF: https://github.com/llvm/llvm-project/commit/8bda8cfae6aa3c32cca7997ab64771e6a78f3e61.diff

LOG: [clang][NFC] Fix buildbot failure in drs/23xx.cpp

This is a follow-up to 630548a11423a40c5496cec78001374bfb8ff741, which fixed builtbot failure https://lab.llvm.org/buildbot/#/builders/188/builds/41930

Added: 
    

Modified: 
    clang/test/CXX/drs/dr23xx.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/CXX/drs/dr23xx.cpp b/clang/test/CXX/drs/dr23xx.cpp
index ad941f606141c8..812d95a39b638d 100644
--- a/clang/test/CXX/drs/dr23xx.cpp
+++ b/clang/test/CXX/drs/dr23xx.cpp
@@ -186,7 +186,7 @@ namespace dr2358 { // dr2358: 16
 // CWG2363 was closed as NAD, but its resolution does affirm that
 // a friend declaration cannot have an opaque-enumm-specifier.
 namespace dr2363 { // dr2363: yes
-
+#if __cplusplus >= 201103L
 enum class E0;
 enum E1 : int;
 
@@ -214,6 +214,7 @@ struct A {
   // expected-error at -2 {{elaborated enum specifier cannot be declared as a friend}}
   // expected-note at -3 {{remove 'enum class' to befriend an enum}}
 };
+#endif
 } // namespace dr2363
 
 namespace dr2370 { // dr2370: no


        


More information about the cfe-commits mailing list