Searched refs:nullptr (Results 1 - 25 of 178) sorted by relevance

12345678

/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Dnullptr31.C4 bool b1 = nullptr; // { dg-error "direct" }
6 bool b2(nullptr);
7 bool b3{nullptr};
9 int i1 = nullptr; // { dg-error "cannot convert" }
10 int i2(nullptr); // { dg-error "cannot convert" }
11 int i3{nullptr}; // { dg-error "cannot convert" }
H A Dwarn_cxx0x.C4 int nullptr; // { dg-warning "is a keyword" } variable
9 nullptr = 5;
H A Dnullptr10.C7 nullptr = 0; // { dg-error "lvalue required as left operand" }
8 nullptr + 2; // { dg-error "invalid operands of types " }
9 decltype(nullptr) mynull = 0;
H A Dnullptr25.C3 template<decltype(nullptr)>
6 nt<nullptr> x;
H A Dnullptr24.C4 template<decltype(nullptr)>
H A Dnullptr03.C5 const int n1 = nullptr; // { dg-error "cannot convert " }
6 decltype(nullptr) mynull = 0;
H A Dnullptr09.C7 if( nullptr == 0 );
8 decltype(nullptr) mynull = 0;
H A Dnullptr12.C5 static_assert(sizeof(nullptr) == sizeof(void*), "sizeof(nullptr) is wrong");
6 const decltype(nullptr) mynull = 0;
7 static_assert(sizeof(mynull) == sizeof(void*), "sizeof(nullptr) is wrong");
H A Dnullptr27.C6 template<class T, decltype(nullptr) = nullptr>
9 int i2 = f(nullptr); // 17
H A Dnullptr07.C8 if( n == nullptr ); // { dg-error "invalid operands of types " }
10 if( m == nullptr ); // { dg-error "invalid operands of types " }
11 decltype(nullptr) mynull = 0;
H A Dnullptr11.C10 assert_true(nullptr == nullptr);
11 assert_false(nullptr != nullptr);
12 assert_false(nullptr < nullptr);
13 assert_false(nullptr > nullptr);
14 assert_true(nullptr <= nullptr);
[all...]
H A Dnullptr01.C5 char* const cp1 = nullptr;
8 decltype(nullptr) mynull = 0;
H A Dnullptr13.C9 const decltype(nullptr) mynull = 0;
10 if (typeid(nullptr) != typeid(mynull))
H A Dnullptr29.C5 void f(decltype(nullptr) &__restrict np) { }
H A DWzero-as-null-pointer-constant-1.C22 pointmemfun pmfn(nullptr);
23 pointdmem pdmn(nullptr);
24 pointfun pfn(nullptr);
25 int* pn(nullptr);
35 pmf = nullptr;
37 pdm = nullptr;
39 pf = nullptr;
41 p = nullptr;
115 if (pmf == nullptr)
118 if (pdm == nullptr)
[all...]
H A Dnullptr06.C7 constexpr char* cp1 = nullptr;
11 assert_true(cp1 == nullptr);
12 decltype(nullptr) mynull = 0;
H A Dnullptr08.C9 assert_true(nullptr ? false : true);
10 decltype(nullptr) mynull = 0;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/abi/
H A Dmangle50.C5 template < void * = nullptr > void f() { }
6 template < void (A::*)() = nullptr > void g() { }
7 template < int A::* = nullptr > void h() { }
13 f<nullptr>();
17 g<nullptr>();
21 h<nullptr>();
23 constexpr void * ptr = nullptr;
H A Dnullptr-align.C5 static_assert(alignof (decltype (nullptr)) == alignof (void *), "");
H A Dnullptr-align2.C6 decltype(nullptr) n;
7 decltype(nullptr) n2;
13 decltype(nullptr) n;
19 decltype(nullptr) n; // { dg-warning "alignment" }
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/
H A Ddr1401.cc31 if (ptr1 == nullptr)
33 if (nullptr == ptr1)
37 if (ptr1 != nullptr)
39 if (nullptr != ptr1)
43 if (ptr1 < nullptr)
45 if (nullptr < ptr1)
49 if (ptr1 <= nullptr)
51 if (nullptr <= ptr1)
55 if (ptr1 > nullptr)
57 if (nullptr > ptr
[all...]
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/unique_ptr/comparison/
H A Ddr1401.cc31 if (ptr1 == nullptr)
33 if (nullptr == ptr1)
37 if (ptr1 != nullptr)
39 if (nullptr != ptr1)
43 if (ptr1 < nullptr)
45 if (nullptr < ptr1)
49 if (ptr1 <= nullptr)
51 if (nullptr <= ptr1)
55 if (ptr1 > nullptr)
57 if (nullptr > ptr
[all...]
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/lto/
H A D20101010-3_0.C4 decltype(nullptr) a;
H A D20101010-4_0.C4 typedef decltype(nullptr) nullptr_t;
9 shared_ptr p = nullptr;
/haiku-buildtools/gcc/libstdc++-v3/testsuite/18_support/exception_ptr/
H A Drequirements.cc35 std::exception_ptr p3 = nullptr;
36 std::exception_ptr p4(nullptr);
37 VERIFY( std::exception_ptr() == nullptr );
38 p4 = nullptr;
39 VERIFY( p4 == nullptr );
40 VERIFY( nullptr == p4 );
41 VERIFY( (p4 != nullptr) == !(p4 == nullptr) );
42 VERIFY( (nullptr != p4) == !(p4 == nullptr) );
[all...]

Completed in 130 milliseconds

12345678