xref: /llvm-project/clang/test/SemaObjCXX/unsupported-signature-std-addressof-id.mm (revision 22c7a6ddddec6d62e627ca66b886b60ba1ce1e7c)
1// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -verify %s
2// expected-no-diagnostics
3
4namespace std {
5    template <class T>
6    T* addressof(T&);
7}
8
9void f(id obj) {
10    (void)std::addressof(*obj);
11}
12