/external/clang/test/Parser/ |
cxx0x-ambig.cpp | 38 constexpr T() {} 39 constexpr T(int) {} 40 constexpr T(T, T, T, T) {} 41 constexpr T operator=(T) const { return *this; } 42 constexpr operator int() const { return 4; } 44 constexpr T a, b, c, d; 71 constexpr operator T() const { return T(); } // expected-note 2{{candidate}} 79 constexpr const U &id(const U &u) { return u; }
|
cxx0x-decl.cpp | 46 // a constexpr function. 49 constexpr auto f() const -> decltype((n)); 51 constexpr const int &ConstexprTrailingReturn::f() const { return n; }
|
recovery.cpp | 34 constexpr int foo();
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/array/array.size/ |
size.pass.cpp | 12 // template <class T, size_t N> constexpr size_type array<T,N>::size(); 35 constexpr C c = {1, 2, 3.5}; 41 constexpr C c = {};
|
/external/clang/test/CXX/lex/lex.literal/lex.ext/ |
p4.cpp | 17 template<char...Cs> constexpr int operator "" _x3() { return sizeof...(Cs); }
|
/external/clang/test/CodeGenCXX/ |
cxx0x-initializer-stdinitializerlist-pr12086.cpp | 19 constexpr initializer_list(const _E* __b, size_t __s) 38 constexpr initializer_list() : __begin_(nullptr), __end_(nullptr) {} 44 constexpr initializer_list() : __begin_(nullptr), __size_(0) {} 53 constexpr int a = 2, b = 4, c = 6;
|
/external/clang/test/Lexer/ |
cxx1y_binary_literal.cpp | 10 constexpr unsigned long long operator""_foo(unsigned long long n) {
|
/external/clang/test/SemaCXX/ |
constexpr-many-arguments.cpp | 6 constexpr type1(int a0) : my_data{a0} {} 13 constexpr type2(T a00, T a01, T a02, T a03, T a04, T a05, T a06, T a07, T a08, T a09, 25 constexpr type3(type2 a0, type2 a1) : my_data{a0, a1} {} 29 constexpr type3 g
|
new-delete-0x.cpp | 4 struct noreturn_t {} constexpr noreturn = {};
|
builtins.cpp | 32 struct T { constexpr T *operator&() const { return nullptr; } int n; } t; 33 constexpr T *pt = __builtin_addressof(t);
|
access.cpp | 46 static constexpr I x = 0; // expected-note {{implicitly declared private here}} 47 static constexpr I y = 42; // expected-note {{implicitly declared private here}} 77 static constexpr I x = 0; // expected-note {{implicitly declared private here}}
|
/external/stlport/stlport/stl/ |
_move.h | 29 constexpr typename tr1::remove_reference<T>::type&& move(T&& t) noexcept {
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.members/ |
construct.pass.cpp | 12 // constexpr complex(const T& re = T(), const T& im = T()); 43 constexpr std::complex<T> c; 48 constexpr std::complex<T> c = 7.5; 53 constexpr std::complex<T> c(8.5); 58 constexpr std::complex<T> c(10.5, -9.5);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.cons/ |
default.pass.cpp | 30 constexpr D d2;
|
rep.pass.cpp | 29 constexpr D d2(R(2));
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/ |
p3.cpp | 59 static constexpr auto (*p)(T) = &f; 62 constexpr int (*f1)(char) = &f; 63 constexpr double (*f2)(short) = &f; 69 static constexpr auto (T::*p) = &K::n; 77 //static constexpr auto (*p)(int) -> auto(*)(T) -> auto(*)(char) = &x; // ill-formed 78 static constexpr auto (*(*(*p)(int))(T))(char) = &x; // ok
|
/external/clang/test/Preprocessor/ |
cxx_oper_keyword_ms_compat.cpp | 30 #define constexpr macro 115 constexpr
|
/external/clang/test/SemaTemplate/ |
alignas.cpp | 7 constexpr T max(T t, U u) { return t > u ? t : u; } 10 constexpr auto max(T t, Ts ...ts) -> decltype(max(t, max(ts...))) {
|
/external/clang/test/CXX/expr/expr.const/ |
p3-0x.cpp | 19 constexpr char vowels[] = "aeiou"; 35 struct S { constexpr operator int() const { return 5; } }; 77 template<typename T, T v> struct Val { static constexpr T value = v; }; 104 constexpr operator int() const { return 10; } 106 S s; // not constexpr
|
/external/clang/test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/ |
p2-0x.cpp | 19 constexpr const int *p = &k;
|
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/ |
p1-11.cpp | 13 constexpr std::nullptr_t get_nullptr() { return nullptr; } 15 constexpr std::nullptr_t np = nullptr; 28 // expected-note{{read of non-constexpr variable 'nonconst_np' is not allowed in a constant expression}} 66 constexpr int i = 7;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/ |
default.pass.cpp | 14 // constexpr tuple(); 51 constexpr std::tuple<> t; 54 constexpr std::tuple<int> t; 58 constexpr std::tuple<int, char*> t;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.special/ |
max.pass.cpp | 14 // static constexpr duration max(); 33 constexpr Rep max_rep = std::chrono::duration_values<Rep>::max();
|
min.pass.cpp | 14 // static constexpr duration min(); 33 constexpr Rep min_rep = std::chrono::duration_values<Rep>::min();
|
zero.pass.cpp | 14 // static constexpr duration zero(); 32 constexpr Rep zero_rep = std::chrono::duration_values<Rep>::zero();
|