/external/clang/test/CXX/dcl.dcl/ |
p4-0x.cpp | 9 constexpr operator int() { return 1; } 12 constexpr operator int() { return 1; } // expected-note {{candidate}}
|
/external/clang/test/Sema/ |
parentheses.cpp | 6 void conditional_op(int x, int y, bool b) { 22 operator int(); 23 Stream &operator<<(int); 34 operator int() { return 42; }
|
/external/clang/test/Index/ |
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 i}}{RightParen ) [all...] |
/external/clang/test/SemaCXX/ |
new-array-size-conv.cpp | 5 ValueInt(int v = 0) : ValueLength(v) {} 6 operator int () const { return ValueLength; } // expected-note 3{{conversion to integral type 'int' declared here}} 8 int ValueLength; 22 (void)new int[ValueInt(10)]; // expected-warning{{implicit conversion from array size expression of type 'ValueInt' to integral type 'int' is a C++11 extension}} 23 (void)new int[ValueEnum()]; // expected-warning{{implicit conversion from array size expression of type 'ValueEnum' to enumeration type 'E' is a C++11 extension}} 24 (void)new int[ValueBoth()]; // expected-error{{ambiguous conversion of array size expression of type 'ValueBoth' to an integral or enumeration type}} 26 (void)new int[TwoValueInts()]; // expected-error{{ambiguous conversion of array size expression of type 'TwoValueInts' to an integral or enumeration type}}
|
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; [all...] |
constructor.cpp | 2 typedef int INT; 7 explicit Foo(int); // expected-note {{previous declaration is here}} 10 ((Foo))(INT); // expected-error{{cannot be redeclared}} 12 Foo(Foo foo, int i = 17, int j = 42); // expected-error{{copy constructor must pass its first argument by reference}} 18 int Foo(int, int); // expected-error{{constructor cannot have a return type}} \ 25 int version [all...] |
member-init.cpp | 4 int n : 3 = 7; // expected-error {{bitfield member cannot have an in-class initializer}} 7 int a; 9 int &n = a; 11 int &GetN() { return n; } 15 int k; 17 int &n = b() ? Recurse().n : k; // ok 21 int as[] = { 1, 2, 3 }; // expected-error {{array bound cannot be deduced from an in-class initializer}} 22 int bs[4] = { 4, 5, 6, 7 }; 23 int cs[] = { 8, 9, 10 }; // expected-error {{array bound cannot be deduced from an in-class initializer}} 26 template<int n> struct T { static const int B; } [all...] |
typo-correction.cpp | 4 int v_; 5 operator int() const {return v_;} 10 int _val_; 14 error_condition(int _val) 30 return error_condition(static_cast<int>(_e)); 40 static int base_type; // expected-note {{'base_type' declared here}} 46 int get_type(struct Derived *st) { 63 int field1; 110 void add_in(int i); 113 void add_it(int i); // expected-note{{'add_it' declared here} [all...] |
/external/llvm/include/llvm/Object/ |
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/stlport/test/unit/ |
rawriter_test.cpp | 14 X(int i_ = 0) : i(i_) {} 16 operator int() const { return i; } 19 int i; 49 int i;
|
/ndk/tests/device/test-gnustl-full/unit/ |
rawriter_test.cpp | 14 X(int i_ = 0) : i(i_) {} 16 operator int() const { return i; } 19 int i; 49 int i;
|
/ndk/tests/device/test-stlport/unit/ |
rawriter_test.cpp | 14 X(int i_ = 0) : i(i_) {} 16 operator int() const { return i; } 19 int i; 49 int i;
|
/external/clang/test/Parser/ |
cxx0x-ambig.cpp | 7 struct S { int n; }; 8 struct T { int n; }; 10 int n; 22 int(n) // expected-error {{expected ';'}} 36 constexpr T(int) {} 39 constexpr operator int() { return 4; } 51 enum E : int { a = 1, b = 2, c = 3, d }; // ok, defines an enum 55 enum E : int { a = 1 }; // ok, defines an enum 60 enum E : int { a = 1 } { b = 2 }; // expected-error {{expected member name}} 64 enum E : int { 1 }; // expected-error {{expected '}'}} expected-note {{to match} [all...] |
/external/clang/test/Analysis/ |
temp-obj-dtors-cfg-output.cpp | 12 operator int() { return 0; } 21 operator int() { return 1; } 25 void foo(int); 30 int a = int(A()) + int(B()); 31 foo(int(A()) + int(B())); 32 int b; 38 int b [all...] |
auto-obj-dtors-cfg-output.cpp | 9 operator int() const { return 1; } 335 // CHECK: 9: [B4.8].operator int 337 // CHECK: 11: [B4.10] (ImplicitCastExpr, UserDefinedConversion, int) 407 // CHECK: 9: [B8.8].operator int 409 // CHECK: 11: [B8.10] (ImplicitCastExpr, UserDefinedConversion, int) 430 // CHECK: 7: [B2.6].operator int 432 // CHECK: 9: [B2.8] (ImplicitCastExpr, UserDefinedConversion, int) 471 // CHECK: 7: [B2.6].operator int 473 // CHECK: 9: [B2.8] (ImplicitCastExpr, UserDefinedConversion, int) 637 // CHECK: 9: [B2.8].operator int [all...] |
/external/clang/test/CXX/expr/expr.const/ |
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...] |
p5-0x.cpp | 9 constexpr A(int i) : val(i) { } 10 constexpr operator int() { return val; } 13 int val; 15 template<int> struct X { }; 17 X<a> x; // ok, unique conversion to int 18 int ary[a]; // expected-error {{size of array has non-integer type 'const std_example::A'}} 24 constexpr operator int() { return 8; } 29 constexpr explicit operator int() { return 4; } // expected-note 4{{here}} 33 constexpr operator int() { return 2; } // expected-note 4{{here}} 37 constexpr int test_ok = ok; // o [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
p3.cpp | 13 NonLiteral(int) {} 17 operator int() const { return 0; } 21 virtual int ImplicitlyVirtual() const = 0; // expected-note {{overridden virtual function}} 24 int ImplicitlyVirtual() const; 31 constexpr int f(); // expected-error {{non-literal type 'T' cannot have constexpr members}} 34 virtual constexpr int ExplicitlyVirtual() { return 0; } // expected-error {{virtual function cannot be constexpr}} 36 constexpr int ImplicitlyVirtual() { return 0; } // expected-error {{virtual function cannot be constexpr}} 46 constexpr int NonLiteralParam(NonLiteral) { return 0; } // expected-error {{constexpr function's 1st parameter type 'NonLiteral' is not a literal type}} 47 typedef int G(NonLiteral); 51 constexpr int Deleted() = delete [all...] |
p6.cpp | 13 NonLiteral(int) {} // expected-note 2{{here}} 14 operator int() const { return 0; } 18 operator int() const { return 0; } 22 virtual int ImplicitlyVirtual() const; 27 constexpr int ImplicitlyVirtual() { return 0; } 30 constexpr int a = ImplicitVirtualFromDependentBase<S>().ImplicitlyVirtual(); // expected-error {{constant expression}} expected-note {{cannot evaluate virtual function call}} 31 constexpr int b = ImplicitVirtualFromDependentBase<T>().ImplicitlyVirtual(); // ok 32 constexpr int c = ImplicitVirtualFromDependentBase<S>().ImplicitVirtualFromDependentBase<S>::ImplicitlyVirtual(); 37 constexpr int d = ConstexprMember<int>().F(); // o [all...] |
p4.cpp | 13 NonLiteral(int) {} 17 explicit Literal(int); // expected-note 2 {{here}} 18 operator int() const { return 0; } 24 constexpr S(int, N::C) {} 25 constexpr S(int, NonLiteral, N::C) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}} 26 constexpr S(int, NonLiteral = 42) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}} 56 int u; 70 typedef int I; 72 using J = int; 73 using K = int[sizeof(I) + sizeof(J)] [all...] |
/external/clang/test/CodeGenCXX/ |
conversion-function.cpp | 6 extern "C" int printf(...); 8 operator int(); 11 S::operator int() { 15 int f(S s) { 20 public: operator int() { printf("operator int()\n"); return iX; } 23 int iX; 31 int iZ; 44 int count=0; 47 operator int(){ return ++iO; [all...] |
constructor-init.cpp | 5 extern "C" int printf(...); 9 M(int i) { iM = i; printf("M(%d)\n", i); } 10 int iM; 16 P(int i) { iP = i; printf("P(%d)\n", i); } 17 int iP; 23 Q(int i) { iQ = i; printf("Q(%d)\n", i); } 24 int iQ; 34 int i1; 57 int main() { 67 A(int) {} [all...] |
/external/llvm/test/MC/X86/ |
x86-32.s | 111 int $4 label 112 // CHECK: int $4 114 int $255 label 115 // CHECK: int $255
|
/external/clang/test/SemaTemplate/ |
instantiate-declref.cpp | 37 typedef int INT; 38 template struct N::Outer::Inner::InnerTemplate<INT>::VeryInner; 39 template struct N::Outer::Inner::InnerTemplate<INT>::UeberInner; // expected-error{{no struct named 'UeberInner' in 'N::Outer::Inner::InnerTemplate<int>'}} 71 template struct N2::Outer2::Inner<int*, float*>; // expected-note{{instantiation}} 77 int member; 80 operator int safe_bool::*() const { 87 void test_smart_ptr(smart_ptr<int> p) { 93 template <int K> struct X [all...] |
/external/clang/test/Preprocessor/ |
cxx_oper_keyword_ms_compat.cpp | 50 #define int macro 135 int
|