proxygen
LaunderTest.cpp File Reference

Go to the source code of this file.

Functions

 TEST (LaunderTest, Basics)
 

Function Documentation

TEST ( LaunderTest  ,
Basics   
)

Definition at line 23 of file LaunderTest.cpp.

References a, EXPECT_EQ, EXPECT_TRUE, folly::launder(), and folly::pushmi::__adl::noexcept().

23  {
24  int a;
25  int* pa = &a;
26  EXPECT_EQ(pa, launder(pa));
28 }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
requires E e noexcept(noexcept(s.error(std::move(e))))
char a
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859
FOLLY_NODISCARD T * launder(T *in) noexcept
Definition: Launder.h:48