1
0
Fork 0
firefox/tools/clang-tidy/test/readability-redundant-smartptr-get.cpp
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
265 B
C++

#define NULL __null
namespace std {
template <typename T>
struct unique_ptr {
T& operator*() const;
T* operator->() const;
T* get() const;
explicit operator bool() const noexcept;
};
}
struct A {
};
void foo() {
A& b2 = *std::unique_ptr<A>().get();
}