[clang] 1b2efe8 - Fix this test to be more robust

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 17 05:07:27 PDT 2022


Author: Aaron Ballman
Date: 2022-09-17T08:06:16-04:00
New Revision: 1b2efe8d87b30052de944f0153d3833046b80604

URL: https://github.com/llvm/llvm-project/commit/1b2efe8d87b30052de944f0153d3833046b80604
DIFF: https://github.com/llvm/llvm-project/commit/1b2efe8d87b30052de944f0153d3833046b80604.diff

LOG: Fix this test to be more robust

The test is failing because it lacks a target triple, so the number of
diagnostics differs between Windows and Linux targets.

This should correct the issue found by:
https://lab.llvm.org/buildbot/#/builders/109/builds/46804

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/test/CXX/drs/dr4xx.cpp b/clang/test/CXX/drs/dr4xx.cpp
index 4995e4de65d3..2bf6133f8ad2 100644
--- a/clang/test/CXX/drs/dr4xx.cpp
+++ b/clang/test/CXX/drs/dr4xx.cpp
@@ -1013,7 +1013,7 @@ namespace dr483 { // dr483: yes
     int check4[__LONG_MAX__ >= 2147483647 ? 1 : -1];
     int check5[__LONG_LONG_MAX__ >= 9223372036854775807 ? 1 : -1];
 #if __cplusplus < 201103L
-    // expected-error at -2 2{{extension}}
+    // expected-error at -2 1+{{extension}}
 #endif
   }
   namespace cstdint {


        


More information about the cfe-commits mailing list