bolt/deps/llvm-18.1.8/clang/test/SemaObjCXX/unsupported-signature-std-addressof-id.mm

12 lines
222 B
Text
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -verify %s
// expected-no-diagnostics
namespace std {
template <class T>
T* addressof(T&);
}
void f(id obj) {
(void)std::addressof(*obj);
}