[clang] 96070e1 - [clang][NFC] Adjust expected directives in DR tests

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 2 13:21:59 PST 2023


Author: Vlad Serebrennikov
Date: 2023-12-03T00:21:53+03:00
New Revision: 96070e1e4c13f53c2cef8178d64e206162923f54

URL: https://github.com/llvm/llvm-project/commit/96070e1e4c13f53c2cef8178d64e206162923f54
DIFF: https://github.com/llvm/llvm-project/commit/96070e1e4c13f53c2cef8178d64e206162923f54.diff

LOG: [clang][NFC] Adjust expected directives in DR tests

This is a follow-up to 0c06e8745f131d867c566f4d35a7a04e24b4a075, which accomodated expected directives for 32-bit ARM and Windows platforms.

Addressed bot failures:
https://lab.llvm.org/buildbot/#/builders/123/builds/23355
https://lab.llvm.org/buildbot/#/builders/245/builds/17458

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/test/CXX/drs/dr2xx.cpp b/clang/test/CXX/drs/dr2xx.cpp
index 72f69ba99ca7..4dd6d7599f2a 100644
--- a/clang/test/CXX/drs/dr2xx.cpp
+++ b/clang/test/CXX/drs/dr2xx.cpp
@@ -5,8 +5,10 @@
 // RUN: %clang_cc1 -std=c++20 %s -verify=expected,since-cxx11,since-cxx14,since-cxx17 -fexceptions -fcxx-exceptions -pedantic-errors
 // RUN: %clang_cc1 -std=c++23 %s -verify=expected,since-cxx11,since-cxx14,since-cxx17 -fexceptions -fcxx-exceptions -pedantic-errors
 
+// FIXME: diagnostic above is emitted only on Windows platforms
 // PR13819 -- __SIZE_TYPE__ is incompatible.
 typedef __SIZE_TYPE__ size_t;
+// cxx98-error at -1 0-1 {{'long long' is a C++11 extension}}
 
 #if __cplusplus < 201103L
 #define fold(x) (__builtin_constant_p(x) ? (x) : (x))
@@ -1296,7 +1298,7 @@ namespace dr299 { // dr299: 2.8 c++11
   // cxx98-11-error@#dr299-q {{ambiguous conversion of array size expression of type 'T' to an integral or enumeration type}}
   //  cxx98-11-note@#dr299-int {{conversion to integral type 'int' declared here}}
   //  cxx98-11-note@#dr299-ushort {{conversion to integral type 'unsigned short' declared here}}
-  // since-cxx14-error@#dr299-q {{conversion from 'T' to 'unsigned long' is ambiguous}}
+  // since-cxx14-error-re@#dr299-q {{{{conversion from 'T' to 'unsigned (long|int)' is ambiguous}}}}
   //  since-cxx14-note@#dr299-int {{candidate function}}
   //  since-cxx14-note@#dr299-ushort {{candidate function}}
 }


        


More information about the cfe-commits mailing list