//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template T* addressof(T&& r) = delete; #include #include #include "test_macros.h" int main() { #if TEST_STD_VER > 14 const int *p = std::addressof(0); #else #error #endif }