Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Fix addressof fail test
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Nov 14, 2022
1 parent 9cd7c11 commit 7c975bc
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++11
// UNSUPPORTED: nvrtc

// <memory>

// template <ObjectType T> T* addressof(T&& r) = delete;
Expand All @@ -17,11 +20,7 @@

int main(int, char**)
{
#if TEST_STD_VER > 14
const int *p = cuda::std::addressof<const int>(0);
#else
#error
#endif
const int *p = cuda::std::addressof<const int>(0);

return 0;
}

0 comments on commit 7c975bc

Please sign in to comment.