Speculatively fix a failing bot
authorAaron Ballman <aaron@aaronballman.com>
Mon, 17 Apr 2023 14:08:40 +0000 (10:08 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 17 Apr 2023 14:10:00 +0000 (10:10 -0400)
This attempts to resolve the issue found by:
https://lab.llvm.org/buildbot/#/builders/139/builds/39296

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

index 28a5169..c386693 100644 (file)
@@ -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}}
-