[clang] 56f7052 - Speculatively fix a failing bot

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 17 07:10:14 PDT 2023


Author: Aaron Ballman
Date: 2023-04-17T10:10:00-04:00
New Revision: 56f7052d9226838b745970c4156be30ee209ee03

URL: https://github.com/llvm/llvm-project/commit/56f7052d9226838b745970c4156be30ee209ee03
DIFF: https://github.com/llvm/llvm-project/commit/56f7052d9226838b745970c4156be30ee209ee03.diff

LOG: Speculatively fix a failing bot

This attempts to resolve the issue found by:
https://lab.llvm.org/buildbot/#/builders/139/builds/39296

Added: 
    

Modified: 
    clang/test/SemaCXX/crash-lambda-weak-attr.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaCXX/crash-lambda-weak-attr.cpp b/clang/test/SemaCXX/crash-lambda-weak-attr.cpp
index 28a516942393..c3866930092f 100644
--- a/clang/test/SemaCXX/crash-lambda-weak-attr.cpp
+++ b/clang/test/SemaCXX/crash-lambda-weak-attr.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s
 
 struct Weak {
     [[gnu::weak]]void weak_method();
@@ -6,4 +6,3 @@ struct Weak {
 static_assert([](){ return &Weak::weak_method != nullptr; }()); // expected-error {{static assertion expression is not an integral constant expression}} \
                                                                 // expected-note {{comparison against pointer to weak member 'Weak::weak_method' can only be performed at runtime}} \
                                                                 // expected-note {{in call to}}
-


        


More information about the cfe-commits mailing list