HomeSort by relevance Sort by last modified time
    Searched refs:constexpr (Results 176 - 200 of 1197) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/clang/test/SemaTemplate/
constexpr-instantiate.cpp 5 template<typename T> static constexpr T get() { return T(); }
11 constexpr int j = A::get<int>();
13 template<typename T> constexpr int consume(T);
17 template<typename T> constexpr int consume(T) { return 0; }
19 constexpr int l = consume(0);
21 constexpr int m = k; // expected-error {{constant expression}} expected-note {{initializer of 'k'}}
25 template<typename T> constexpr T f(T n) { return n; }
36 template<typename T> constexpr T f(T n) { return n; }
46 template<typename T> constexpr T f(T t) { return t; }
65 constexpr int m = S<int>::k; // o
    [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/experimental/optional/optional.object/optional.object.ctor/
default.pass.cpp 12 // constexpr optional() noexcept;
27 constexpr Opt opt;
33 constexpr test_constexpr_ctor() {}
49 constexpr test_constexpr_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...]
  /external/libcxx/test/std/experimental/optional/optional.object/optional.object.observe/
dereference_const.pass.cpp 12 // constexpr const T& optional<T>::operator*() const;
28 constexpr int test() const {return 3;}
42 constexpr optional<X> opt(X{});
46 constexpr optional<Y> opt(Y{});
  /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...]
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...]
  /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...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.object/optional.object.ctor/
default.pass.cpp 12 // constexpr optional() noexcept;
27 constexpr Opt opt;
33 constexpr test_constexpr_ctor() {}
49 constexpr test_constexpr_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/optional/optional.object/optional.object.observe/
dereference_const.pass.cpp 12 // constexpr const T& optional<T>::operator*() const;
28 constexpr int test() const {return 3;}
42 constexpr optional<X> opt(X{});
46 constexpr optional<Y> opt(Y{});
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/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...]
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...]
  /art/compiler/optimizing/
live_interval_test.cc 30 static constexpr size_t ranges[][2] = {{0, 42}};
36 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}};
47 static constexpr size_t ranges[][2] = {{0, 42}};
57 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}};
75 static constexpr size_t ranges[][2] = {{0, 42}};
85 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}};
103 static constexpr size_t ranges1[][2] = {{0, 4}, {8, 10}};
105 static constexpr size_t ranges2[][2] = {{5, 6}};
112 static constexpr size_t ranges1[][2] = {{0, 4}, {8, 10}};
114 static constexpr size_t ranges2[][2] = {{5, 42}}
    [all...]
constant_folding.h 47 static constexpr const char* kConstantFoldingPassName = "constant_folding";
select_generator.h 55 static constexpr const char* kSelectGeneratorPassName = "select_generator";
ssa_phi_elimination.h 43 static constexpr const char* kSsaDeadPhiEliminationPassName = "dead_phi_elimination";
48 static constexpr size_t kDefaultWorklistSize = 8;
69 static constexpr const char* kSsaRedundantPhiEliminationPassName = "redundant_phi_elimination";
74 static constexpr size_t kDefaultWorklistSize = 8;
  /external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/
p7.cpp 6 constexpr S ss = { 1, "asdf" };
14 constexpr X a[] = { 1, 2, 3, 4, 5, 6 };
15 constexpr X b[2] = { { 1, 2, 3 }, { 4, 5, 6 } };
17 constexpr bool operator==(X a, X b) {
  /external/clang/test/CXX/lex/lex.literal/lex.ext/
p3.cpp 17 template<char...Cs> constexpr int operator "" _x3() { return sizeof...(Cs); }
  /external/clang/test/CXX/lex/lex.literal/lex.string/
p4.cpp 7 constexpr const char* p = R"(a\
  /external/clang/test/PCH/
make-integer-seq.cpp 6 static constexpr T PackSize = sizeof...(I);
  /external/clang/test/Parser/
cxx1z-fold-expressions.cpp 3 template<typename ...T> constexpr auto sum(T ...t) { return (... + t); }
4 template<typename ...T> constexpr auto product(T ...t) { return (t * ...); }
5 template<typename ...T> constexpr auto all(T ...t) { return (true && ... && t); }
6 template<typename ...T> constexpr auto all2(T ...t) { return (t && ... && true); }
  /external/clang/test/SemaCXX/
constexpr-ackermann.cpp 3 constexpr unsigned long long A(unsigned long long m, unsigned long long n) {
enum-unscoped-nonexistent.cpp 8 constexpr int f() const;
9 constexpr int g() const;
19 template<typename T> constexpr int S<T>::f() const { return a; }
25 template<typename T> constexpr int S<T>::g() const { return b; } // expected-error {{enumerator 'b' does not exist in instantiation of 'S<char>'}}
  /external/compiler-rt/test/asan/TestCases/
initialization-constexpr.cc 0 // Constexpr:
2 // We need to check that a global variable initialized with a constexpr
3 // constructor can be accessed during dynamic initialization (as a constexpr
7 // RUN: %clangxx_asan -O0 %s %p/Helpers/initialization-constexpr-extra.cc --std=c++11 -o %t
9 // RUN: %clangxx_asan -O1 %s %p/Helpers/initialization-constexpr-extra.cc --std=c++11 -o %t
11 // RUN: %clangxx_asan -O2 %s %p/Helpers/initialization-constexpr-extra.cc --std=c++11 -o %t
13 // RUN: %clangxx_asan -O3 %s %p/Helpers/initialization-constexpr-extra.cc --std=c++11 -o %t
21 constexpr Integer(int x = 0) : value(x) {}

Completed in 1765 milliseconds

1 2 3 4 5 6 78 91011>>