Files
clang-p2996/clang/test/SemaCXX/crash-lambda-weak-attr.cpp
Aaron Ballman 56f7052d92 Speculatively fix a failing bot
This attempts to resolve the issue found by:
https://lab.llvm.org/buildbot/#/builders/139/builds/39296
2023-04-17 10:10:00 -04:00

9 lines
543 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s
struct Weak {
[[gnu::weak]]void weak_method();
};
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}}