Lines Matching refs:nullptr

4 typedef decltype(nullptr) nullptr_t;
16 null = nullptr; in f()
17 void *p = nullptr; in f()
19 int *pi = nullptr; in f()
22 int A::*pm = nullptr; in f()
24 void (*pf)() = nullptr; in f()
26 void (A::*pmf)() = nullptr; in f()
28 bool b = nullptr; in f()
31 uintptr_t i = nullptr; // expected-error {{cannot initialize}} in f()
34 (void)(null == nullptr); in f()
35 (void)(null <= nullptr); in f()
38 (void)((void*)0 == nullptr); in f()
41 (void)((void*)0 <= nullptr); in f()
42 (void)(0 == nullptr); in f()
43 (void)(nullptr == 0); in f()
44 (void)(nullptr <= 0); in f()
45 (void)(0 <= nullptr); in f()
46 (void)(1 > nullptr); // expected-error {{invalid operands to binary expression}} in f()
47 (void)(1 != nullptr); // expected-error {{invalid operands to binary expression}} in f()
48 (void)(1 + nullptr); // expected-error {{invalid operands to binary expression}} in f()
49 (void)(0 ? nullptr : 0); in f()
50 (void)(0 ? nullptr : (void*)0); in f()
51 …(void)(0 ? nullptr : A()); // expected-error {{non-pointer operand type 'A' incompatible with null… in f()
52 …(void)(0 ? A() : nullptr); // expected-error {{non-pointer operand type 'A' incompatible with null… in f()
55 int t = o1(nullptr); in f()
57 o2(nullptr); // expected-error {{ambiguous}} in f()
60 (void)&nullptr; // expected-error {{cannot take the address of an rvalue of type 'nullptr_t'}} in f()
64 (void)reinterpret_cast<uintptr_t>(nullptr); in f()
68 …(void)reinterpret_cast<char>(nullptr); // expected-error {{cast from pointer to smaller type 'char… in f()
74 throw nullptr; in f()
81 typedef T<nullptr, nullptr, nullptr, nullptr> NT;
96 static_assert(is_same<decltype(g(nullptr)), void*>::value, "");
104 f(10, nullptr); in g()
113 f("%p", nullptr); in g()
121 static_assert(!(nullptr < nullptr), "");
122 static_assert(!(nullptr > nullptr), "");
123 static_assert( nullptr <= nullptr, "");
124 static_assert( nullptr >= nullptr, "");
125 static_assert( nullptr == nullptr, "");
126 static_assert(!(nullptr != nullptr), "");
128 static_assert(!(0 < nullptr), "");
129 static_assert(!(0 > nullptr), "");
130 static_assert( 0 <= nullptr, "");
131 static_assert( 0 >= nullptr, "");
132 static_assert( 0 == nullptr, "");
133 static_assert(!(0 != nullptr), "");
135 static_assert(!(nullptr < 0), "");
136 static_assert(!(nullptr > 0), "");
137 static_assert( nullptr <= 0, "");
138 static_assert( nullptr >= 0, "");
139 static_assert( nullptr == 0, "");
140 static_assert(!(nullptr != 0), "");
147 int &ir = (f1)(nullptr); in test_f1()
172 X<int, nullptr> x;
178 X2<nullptr, nullptr, nullptr, nullptr> x2;