/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.object/optional.object.ctor/ |
in_place_t.pass.cpp | 13 // constexpr explicit optional(in_place_t, Args&&... args); 45 constexpr Y() : i_(0) {} 46 constexpr Y(int i) : i_(i) {} 47 constexpr Y(int i, int j) : i_(i), j_(j) {} 49 friend constexpr bool operator==(const Y& x, const Y& y) 67 constexpr optional<int> opt(in_place, 5); 74 constexpr test_constexpr_ctor(in_place_t, int i) 95 constexpr optional<Y> opt(in_place); 102 constexpr test_constexpr_ctor(in_place_t) 108 constexpr optional<Y> opt(in_place, 5) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/ |
op_-.pass.cpp | 15 // constexpr 50 constexpr std::chrono::seconds s1(3); 51 constexpr std::chrono::seconds s2(5); 52 constexpr std::chrono::seconds r = s1 - s2; 56 constexpr std::chrono::seconds s1(3); 57 constexpr std::chrono::microseconds s2(5); 58 constexpr std::chrono::microseconds r = s1 - s2; 62 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); 63 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); 64 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2 [all...] |
op_+.pass.cpp | 49 constexpr std::chrono::seconds s1(3); 50 constexpr std::chrono::seconds s2(5); 51 constexpr std::chrono::seconds r = s1 + s2; 55 constexpr std::chrono::seconds s1(3); 56 constexpr std::chrono::microseconds s2(5); 57 constexpr std::chrono::microseconds r = s1 + s2; 61 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); 62 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); 63 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; 67 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/bits/ |
regex_error.h | 68 constexpr error_type error_collate(_S_error_collate); 71 constexpr error_type error_ctype(_S_error_ctype); 77 constexpr error_type error_escape(_S_error_escape); 80 constexpr error_type error_backref(_S_error_backref); 83 constexpr error_type error_brack(_S_error_brack); 86 constexpr error_type error_paren(_S_error_paren); 89 constexpr error_type error_brace(_S_error_brace); 92 constexpr error_type error_badbrace(_S_error_badbrace); 98 constexpr error_type error_range(_S_error_range); 104 constexpr error_type error_space(_S_error_space) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/bits/ |
regex_error.h | 68 constexpr error_type error_collate(_S_error_collate); 71 constexpr error_type error_ctype(_S_error_ctype); 77 constexpr error_type error_escape(_S_error_escape); 80 constexpr error_type error_backref(_S_error_backref); 83 constexpr error_type error_brack(_S_error_brack); 86 constexpr error_type error_paren(_S_error_paren); 89 constexpr error_type error_brace(_S_error_brace); 92 constexpr error_type error_badbrace(_S_error_badbrace); 98 constexpr error_type error_range(_S_error_range); 104 constexpr error_type error_space(_S_error_space) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/bits/ |
regex_error.h | 68 constexpr error_type error_collate(_S_error_collate); 71 constexpr error_type error_ctype(_S_error_ctype); 77 constexpr error_type error_escape(_S_error_escape); 80 constexpr error_type error_backref(_S_error_backref); 83 constexpr error_type error_brack(_S_error_brack); 86 constexpr error_type error_paren(_S_error_paren); 89 constexpr error_type error_brace(_S_error_brace); 92 constexpr error_type error_badbrace(_S_error_badbrace); 98 constexpr error_type error_range(_S_error_range); 104 constexpr error_type error_space(_S_error_space) [all...] |
/prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/ |
regex_error.h | 67 constexpr error_type error_collate(_S_error_collate); 70 constexpr error_type error_ctype(_S_error_ctype); 76 constexpr error_type error_escape(_S_error_escape); 79 constexpr error_type error_backref(_S_error_backref); 82 constexpr error_type error_brack(_S_error_brack); 85 constexpr error_type error_paren(_S_error_paren); 88 constexpr error_type error_brace(_S_error_brace); 91 constexpr error_type error_badbrace(_S_error_badbrace); 97 constexpr error_type error_range(_S_error_range); 103 constexpr error_type error_space(_S_error_space) [all...] |
/external/clang/test/SemaCXX/ |
constexpr-turing.cpp | 4 // A direct proof that constexpr is Turing-complete, once DR1454 is implemented. 18 constexpr Tape() : l(0), val(false), r(0) {} 19 constexpr Tape(const Tape &old, bool write) : 21 constexpr Tape(const Tape &old, Dir dir) : 30 constexpr Tape update(const Tape &old, bool write) { return Tape(old, write); } 31 constexpr Tape move(const Tape &old, Dir dir) { return Tape(old, dir); } 35 constexpr unsigned run(const State *tm, const Tape &tape, unsigned state) { 43 constexpr State bb3[] = { 51 constexpr State bb4[] = {
|
constexpr-depth.cpp | 5 constexpr int depth(int n) { return n > 1 ? depth(n-1) : 0; } // expected-note {{exceeded maximum depth}} expected-note +{{}} 7 constexpr int kBad = depth(MAX + 1); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to 'depth(}} 8 constexpr int kGood = depth(MAX);
|
/external/libcxx/test/std/experimental/string.view/string.view.cons/ |
from_ptr_len.pass.cpp | 13 // constexpr basic_string_view(const _CharT* _s, size_type _len) 37 constexpr const char *s = "QBCDE"; 38 constexpr std::experimental::basic_string_view<char> sv1 ( s, 2 ); 49 constexpr const wchar_t *s = L"QBCDE"; 50 constexpr std::experimental::basic_string_view<wchar_t> sv1 ( s, 2 ); 62 constexpr const char16_t *s = u"QBCDE"; 63 constexpr std::experimental::basic_string_view<char16_t> sv1 ( s, 2 ); 74 constexpr const char32_t *s = U"QBCDE"; 75 constexpr std::experimental::basic_string_view<char32_t> sv1 ( s, 2 );
|
/external/libcxx/test/std/experimental/utilities/tuple/tuple.apply/ |
ref_qualifiers.pass.cpp | 14 // template <class F, class T> constexpr decltype(auto) apply(F &&, T &&) 23 constexpr func_obj() {} 25 constexpr int operator()() const & { return 1; } 26 constexpr int operator()() const && { return 2; } 27 constexpr int operator()() & { return 3; } 28 constexpr int operator()() && { return 4; } 35 // TODO(ericwf): Re-enable constexpr support 38 constexpr func_obj f; 39 constexpr std::tuple<> tp;
|
/external/clang/test/CXX/basic/basic.link/ |
p7.cpp | 40 constexpr void (*f())() { 44 constexpr void (*g())() { 53 constexpr void (*f())() { 63 constexpr auto f() -> void (*)() { 67 static constexpr auto h() -> void (*)() { return g; }
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ |
ratio | 122 static constexpr uintmax_t __lo = __lo1 + __lo2; 123 static constexpr uintmax_t __hi = (__hi1 + __hi2 + 133 static constexpr uintmax_t __lo = __lo1 - __lo2; 134 static constexpr uintmax_t __hi = (__hi1 - __hi2 - 143 static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 144 static constexpr uintmax_t __x0 = __x % __c; 145 static constexpr uintmax_t __x1 = __x / __c; 146 static constexpr uintmax_t __y0 = __y % __c; 147 static constexpr uintmax_t __y1 = __y / __c; 148 static constexpr uintmax_t __x0y0 = __x0 * __y0 [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/ |
ratio | 122 static constexpr uintmax_t __lo = __lo1 + __lo2; 123 static constexpr uintmax_t __hi = (__hi1 + __hi2 + 133 static constexpr uintmax_t __lo = __lo1 - __lo2; 134 static constexpr uintmax_t __hi = (__hi1 - __hi2 - 143 static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 144 static constexpr uintmax_t __x0 = __x % __c; 145 static constexpr uintmax_t __x1 = __x / __c; 146 static constexpr uintmax_t __y0 = __y % __c; 147 static constexpr uintmax_t __y1 = __y / __c; 148 static constexpr uintmax_t __x0y0 = __x0 * __y0 [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ |
ratio | 122 static constexpr uintmax_t __lo = __lo1 + __lo2; 123 static constexpr uintmax_t __hi = (__hi1 + __hi2 + 133 static constexpr uintmax_t __lo = __lo1 - __lo2; 134 static constexpr uintmax_t __hi = (__hi1 - __hi2 - 143 static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 144 static constexpr uintmax_t __x0 = __x % __c; 145 static constexpr uintmax_t __x1 = __x / __c; 146 static constexpr uintmax_t __y0 = __y % __c; 147 static constexpr uintmax_t __y1 = __y / __c; 148 static constexpr uintmax_t __x0y0 = __x0 * __y0 [all...] |
/prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/4.9/include/ |
ratio | 122 static constexpr uintmax_t __lo = __lo1 + __lo2; 123 static constexpr uintmax_t __hi = (__hi1 + __hi2 + 133 static constexpr uintmax_t __lo = __lo1 - __lo2; 134 static constexpr uintmax_t __hi = (__hi1 - __hi2 - 143 static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 144 static constexpr uintmax_t __x0 = __x % __c; 145 static constexpr uintmax_t __x1 = __x / __c; 146 static constexpr uintmax_t __y0 = __y % __c; 147 static constexpr uintmax_t __y1 = __y / __c; 148 static constexpr uintmax_t __x0y0 = __x0 * __y0 [all...] |
/art/runtime/arch/mips/ |
quick_method_frame_info_mips.h | 28 static constexpr uint32_t kMipsCalleeSaveAlwaysSpills = 30 static constexpr uint32_t kMipsCalleeSaveRefSpills = 33 static constexpr uint32_t kMipsCalleeSaveArgSpills = 35 static constexpr uint32_t kMipsCalleeSaveAllSpills = 38 static constexpr uint32_t kMipsCalleeSaveFpAlwaysSpills = 0; 39 static constexpr uint32_t kMipsCalleeSaveFpRefSpills = 0; 40 static constexpr uint32_t kMipsCalleeSaveFpArgSpills = 42 static constexpr uint32_t kMipsCalleeSaveAllFPSpills = 47 constexpr uint32_t MipsCalleeSaveCoreSpills(Runtime::CalleeSaveType type) { 53 constexpr uint32_t MipsCalleeSaveFPSpills(Runtime::CalleeSaveType type) [all...] |
/external/clang/test/CXX/temp/temp.spec/temp.explicit/ |
p1-0x.cpp | 12 constexpr int f() { return 0; } // expected-warning{{C++14}} 15 template constexpr int Y<int>::f() const; // expected-error{{explicit instantiation cannot be 'constexpr'}}
|
/external/clang/test/Parser/ |
cxx0x-decl.cpp | 46 // a constexpr function. 49 constexpr auto f() const -> decltype((n)); 51 constexpr const int &ConstexprTrailingReturn::f() const { return n; } 109 constexpr constexpr int f(); // expected-warning {{duplicate 'constexpr' declaration specifier}} 110 constexpr int constexpr a = 0; // expected-warning {{duplicate 'constexpr' declaration specifier}} 113 friend constexpr int constexpr friend f(); // expected-warning {{duplicate 'friend' declaration specifier}} [all...] |
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.assign/ |
emplace_initializer_list.pass.cpp | 30 constexpr X() : i_(0) {} 31 constexpr X(int i) : i_(i) {} 32 constexpr X(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} 35 friend constexpr bool operator==(const X& x, const X& y) 46 constexpr Y() : i_(0) {} 47 constexpr Y(int i) : i_(i) {} 48 constexpr Y(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} 50 friend constexpr bool operator==(const Y& x, const Y& y) 60 constexpr Z() : i_(0) {} 61 constexpr Z(int i) : i_(i) { [all...] |
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/ |
op_+.pass.cpp | 49 constexpr std::chrono::seconds s1(3); 50 constexpr std::chrono::seconds s2(5); 51 constexpr std::chrono::seconds r = s1 + s2; 55 constexpr std::chrono::seconds s1(3); 56 constexpr std::chrono::microseconds s2(5); 57 constexpr std::chrono::microseconds r = s1 + s2; 61 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); 62 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); 63 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; 67 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.object/optional.object.assign/ |
emplace_initializer_list.pass.cpp | 30 constexpr X() : i_(0) {} 31 constexpr X(int i) : i_(i) {} 32 constexpr X(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} 35 friend constexpr bool operator==(const X& x, const X& y) 46 constexpr Y() : i_(0) {} 47 constexpr Y(int i) : i_(i) {} 48 constexpr Y(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} 50 friend constexpr bool operator==(const Y& x, const Y& y) 60 constexpr Z() : i_(0) {} 61 constexpr Z(int i) : i_(i) { [all...] |
/system/core/adb/ |
services.h | 20 constexpr char kShellServiceArgRaw[] = "raw"; 21 constexpr char kShellServiceArgPty[] = "pty"; 22 constexpr char kShellServiceArgShellProtocol[] = "v2";
|
/system/core/libnativebridge/tests/ |
NativeBridgeTest.h | 25 constexpr const char* kNativeBridgeLibrary = "libnativebridge-dummy.so"; 26 constexpr const char* kCodeCache = "./code_cache"; 27 constexpr const char* kCodeCacheStatFail = "./code_cache/temp";
|
/external/clang/test/Lexer/ |
cxx0x_keyword_as_cxx98.cpp | 3 #define constexpr const macro 4 constexpr int x = 0; 5 #undef constexpr macro 14 int CONCAT(constexpr,ession); 31 int constexpr; // expected-warning {{'constexpr' is a keyword in C++11}} variable
|