/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/ |
H A D | p3.cpp | 2 void f(int) { } // expected-note {{previous definition is here}} 3 void f(const int) { } // expected-error {{redefinition of 'f'}} argument
|
/external/clang/test/CXX/special/class.inhctor/ |
H A D | p8.cpp | 7 constexpr A(const int&) : rval(false) {} argument 8 constexpr A(const int&&) : rval(true) {} argument 15 constexpr int k = 0; 25 int v;
|
/external/libcxx/test/std/utilities/optional/optional.specalg/ |
H A D | make_optional_explicit_initializer_list.pass.cpp | 24 int x; 25 int size; 26 constexpr TestT(std::initializer_list<int> il) : x(*il.begin()), size(static_cast<int>(il.size())) {} 27 constexpr TestT(std::initializer_list<int> il, const int*) argument 28 : x(*il.begin()), size(static_cast<int>(il.size())) {} 31 int main()
|
/external/llvm/lib/Fuzzer/test/ |
H A D | AFLDriverTest.cpp | 10 extern "C" int __afl_persistent_loop(unsigned int) { argument 16 extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { 20 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
/external/netcat/ |
H A D | atomicio.c | 41 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) argument
|
/external/strace/ |
H A D | fetch_bpf_fprog.c | 38 MPERS_PRINTER_DECL(unsigned int, get_sock_fprog_size, void) argument
|
H A D | fetch_struct_mmsghdr.c | 45 MPERS_PRINTER_DECL(int, fetch_struct_mmsghdr, 85 MPERS_PRINTER_DECL(unsigned int, sizeof_struct_mmsghdr, void) argument
|
/external/syslinux/com32/lib/ |
H A D | onexit.c | 11 static __noreturn on_exit_exit(int rv) 22 int on_exit(void (*fctn) (int, void *), void *arg) argument
|
/external/libcxx/test/support/ |
H A D | propagate_const_helpers.h | 1 // A lightweight class, with pointer-like methods, that contains an int 4 int i_; 6 constexpr const int &operator*() const { return i_; } 7 constexpr int &operator*() { return i_; } 8 constexpr const int *get() const { return &i_; } 9 constexpr int *get() { return &i_; } 10 constexpr const int *operator->() const { return &i_; } 11 constexpr int *operator->() { return &i_; } 13 constexpr X(int i) : i_(i) {} 18 int i [all...] |
/external/clang/test/CXX/dcl.dcl/ |
H A D | p4-0x.cpp | 9 constexpr operator int() const { return 1; } 12 constexpr operator int() const { return 1; } // expected-note {{candidate}}
|
/external/clang/test/Index/ |
H A D | code-completion.cpp | 4 int member; 11 void memfunc(int i = 17); 16 operator int() const; 27 float& overloaded(int i, long second); 28 double& overloaded(float f, int second); 29 int& overloaded(Z z, int second); 36 Z::operator int() const { 41 // CHECK-MEMBER: FieldDecl:{ResultType int}{Text X::}{TypedText member} 43 // CHECK-MEMBER: CXXMethod:{ResultType void}{Informative Y::}{TypedText memfunc}{LeftParen (}{Optional {Placeholder int [all...] |
/external/clang/test/SemaCXX/ |
H A D | new-array-size-conv.cpp | 7 ValueInt(int v = 0) : ValueLength(v) {} 8 operator int () const { return ValueLength; } // expected-note 3{{conversion to integral type 'int' declared here}} 10 int ValueLength; 25 (void)new int[ValueInt(10)]; 27 // expected-warning@-2{{implicit conversion from array size expression of type 'ValueInt' to integral type 'int' is a C++11 extension}} 30 (void)new int[ValueEnum()]; 34 (void)new int[ValueBoth()]; // expected-error{{ambiguous conversion of array size expression of type 'ValueBoth' to an integral or enumeration type}} 36 (void)new int[TwoValueInts()]; // expected-error{{ambiguous conversion of array size expression of type 'TwoValueInts' to an integral or enumeration type}}
|
H A D | overloaded-operator-decl.cpp | 4 X(int); 12 void operator()(int x = 17) const; 13 int operator[](int); 15 static int operator+(Y, Y); // expected-error{{overloaded 'operator+' cannot be a static member function}} 23 X operator+(int, float); // expected-error{{overloaded 'operator+' must have at least one parameter of class or enumeration type}} 31 void operator()(Y&, int, int); // expected-error{{overloaded 'operator()' must be a non-static member function}} 33 typedef int INT; 37 X operator++(X&, FLOAT); // expected-error{{parameter of overloaded post-increment operator must have type 'int' (no [all...] |
/external/ltp/lib/ |
H A D | tst_sig.c | 58 declared as function returning an int. 81 static void (*tst_setup_signal(int, void (*)(int))) (int); 92 void tst_sig(int fork_flag, void (*handler) (), void (*cleanup) ()) 94 int sig; 226 static void def_handler(int sig) 240 static void (*tst_setup_signal(int sig, void (*handler) (int))) (int) { argument [all...] |
/external/tensorflow/tensorflow/core/util/sparse/ |
H A D | group_iterator.cc | 49 int) { // postfix ++ 58 for (const int d : iter_->group_dims_) { 48 operator ++( int) argument
|
/external/clang/test/Analysis/ |
H A D | bug_hash_test.cpp | 4 int function(int p) { 9 int variadicParam(int p, ...) { 14 constexpr int f() { return 5; } 18 int priv; 21 static int static_method() { 25 int method() && { 27 inline int method() const & { 35 int OutOfLin [all...] |
/external/clang/test/CXX/drs/ |
H A D | dr9xx.cpp | 22 A(std::initializer_list<int>); // expected-note {{candidate}} 28 B b2 { 1 }; // expected-error {{no viable conversion from 'int' to 'dr990::A'}} 33 C(int); 34 C(std::initializer_list<int>) = delete; // expected-note {{here}} 41 D(std::initializer_list<int>); 52 constexpr A(int v) : v(v) { } 53 constexpr operator int() const { return v; } 55 int v; 58 constexpr int id(int [all...] |
/external/clang/test/Modules/Inputs/submodules-merge-defs/ |
H A D | defs.h | 1 struct A { int a_member; }; 2 inline int use_a(A a) { return a.a_member; } 20 template<> inline void B::f<int>() {} 23 template<int N> struct C_Base { struct D { constexpr operator int() const { return 0; } }; }; 24 const int C_Const = 0; 28 typedef struct { int a; void f(); struct X; } D; 29 struct D::X { int dx; } extern dx; 30 inline int use_dx(D::X dx) { return dx.dx; } 32 template<typename T> int [all...] |
/external/clang/test/OpenMP/ |
H A D | task_messages.cpp | 10 int a; 14 S(int a) : a(a) {} 15 operator int() { return a; } 21 int a; 30 int foo() { 33 int r; 81 for (int i = 0; i < 10; ++i) 88 for (int i = 0; i < 10; ++i) 95 for (int i = 0; i < 10; ++i) 114 int mai [all...] |
/external/clang/test/Parser/ |
H A D | cxx0x-ambig.cpp | 7 struct S { int n; }; 8 struct T { int n; }; 10 int n; 22 int(n) // expected-error {{expected ';'}} 39 constexpr T(int) {} 42 constexpr operator int() const { return 4; } 54 enum E : int { a = 1, b = 2, c = 3, d }; // ok, defines an enum 58 enum E : int { a = 1 }; // ok, defines an enum 63 enum E : int { a = 1 } { b = 2 }; // expected-error {{expected ';' after enum}} expected-error {{expected member name}} 67 enum E : int { [all...] |
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/ |
H A D | const_optional_U.pass.cpp | 31 X(int) 43 Y1(const int&) {} argument 50 Y2(const int&) = delete; 51 Y2& operator=(const int&) { return *this; } argument 56 static int type_constructed; 57 static int type_assigned; 58 static int int_constructed; 59 static int int_assigned; 71 AssignableFrom(int) { ++int_constructed; } 72 AssignableFrom& operator=(int) { [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/Object/ |
H A D | Error.h | 34 explicit object_error(int v) : v_(_(v)) {} 35 operator int() const {return v_;} 39 return error_code(static_cast<int>(e), object_category());
|
/external/swiftshader/third_party/PowerVR_SDK/Tools/ |
H A D | PVRTHash.h | 6 into a 32-bit unsigned int. 19 data into a 32-bit unsigned int. 66 CPVRTHash(const void* pData, unsigned int dataSize, unsigned int dataCount) : m_uiHash(0) 93 @brief Converts to unsigned int. 94 @return int 96 operator unsigned int() const 109 return MakeHash(String.c_str(), sizeof(char), (unsigned int) String.length()); 128 return MakeHash(c_pszString, sizeof(char), (unsigned int) (pCursor - c_pszString)); 140 @return unsigned int Th [all...] |
/external/clang/test/CXX/expr/expr.const/ |
H A D | p3-0x.cpp | 4 int nonconst = 8; // expected-note 3 {{here}} 6 template<int = nonconst> struct NonConstT {}; // expected-error {{non-type template argument is not a constant expression}} expected-note {{read of non-const}} 18 bool a(int n) { 35 struct S { constexpr operator int() const { return 5; } }; 47 int b(unsigned n) { 51 case (int)EE::EE32: 53 case (long long)1e10: // expected-error {{case value evaluates to 10000000000, which cannot be narrowed to type 'unsigned int'}} 54 case -3: // expected-error {{case value evaluates to -3, which cannot be narrowed to type 'unsigned int'}} 62 c = (int)EE::EE32, 67 template<unsigned char> using A = int; [all...] |
/external/clang/test/CXX/expr/expr.unary/expr.new/ |
H A D | p20.cpp | 5 template<int I> 10 int *ip = I; // expected-error{{cannot initialize}} 19 template<int I> 25 int *ip = I; // expected-error{{cannot initialize}} 34 template<int I> 39 static void* operator new(size_t, int, int); 41 static void operator delete(void*, const int, int) { argument 42 int *i [all...] |