/dalvik/dx/tests/040-dex-constructor/ |
info.txt | 4 just a constructor.
|
/dalvik/tests/004-annotations/src/android/test/anno/ |
AnnoFancyConstructor.java | 5 @Target(ElementType.CONSTRUCTOR)
|
/dalvik/tests/068-classloader/src-ex/ |
Inaccessible1.java | 4 * Non-public class, inaccessible from Main. Note the constructor is
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p19.cpp | 12 // Default constructor 13 decltype(lambda1) lambda2; // expected-error{{call to implicitly-deleted default constructor of 'decltype(lambda1)' (aka '<lambda}} 21 // Copy constructor 25 // Move constructor
|
/external/clang/test/CodeGenCXX/ |
constructor-attr.cpp | 9 static void foo() __attribute__((constructor)) {
|
/external/clang/test/SemaCXX/ |
ambiguous-conversion-show-overload.cpp | 17 // CHECK-NEXT: {{candidate constructor}} 18 // CHECK-NEXT: {{candidate constructor}} 19 // CHECK-NEXT: {{candidate constructor}} 20 // CHECK-NEXT: {{candidate constructor}}
|
constructor-recovery.cpp | 4 virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
|
illegal-member-initialization.cpp | 13 X() { } // expected-error {{constructor for 'X' must explicitly initialize the reference member 'value'}} \ 14 // expected-error {{constructor for 'X' must explicitly initialize the const member 'cvalue'}} \ 15 // expected-error {{constructor for 'X' must explicitly initialize the reference member 'b'}} \ 16 // expected-error {{constructor for 'X' must explicitly initialize the const member 'cb'}}
|
trivial-constructor.cpp | 5 static_assert(__has_trivial_constructor(T1), "T1 has trivial constructor!"); 10 static_assert(!__has_trivial_constructor(T2), "T2 has a user-declared constructor!"); 35 static_assert(!__has_trivial_constructor(T7), "t4 does not have a trivial constructor!"); 39 static_assert(!__has_trivial_constructor(T8), "The base class T2 does not have a trivial constructor!");
|
aggregate-initialization.cpp | 7 struct NonAggr1 { // expected-note 2 {{candidate constructor}} 8 NonAggr1(int, int) { } // expected-note {{candidate constructor}} 14 struct NonAggr2 : public Base { // expected-note 3 {{candidate constructor}} 18 class NonAggr3 { // expected-note 3 {{candidate constructor}} 22 struct NonAggr4 { // expected-note 3 {{candidate constructor}} 27 NonAggr1 na1 = { 17 }; // expected-error{{no matching constructor for initialization of 'NonAggr1'}} 28 NonAggr2 na2 = { 17 }; // expected-error{{no matching constructor for initialization of 'NonAggr2'}} 29 NonAggr3 na3 = { 17 }; // expected-error{{no matching constructor for initialization of 'NonAggr3'}} 30 NonAggr4 na4 = { 17 }; // expected-error{{no matching constructor for initialization of 'NonAggr4'}} 65 A as2[1] = { 1 }; // expected-error {{copying array element of type 'A' invokes deleted constructor}} [all...] |
value-initialization.cpp | 3 struct A { // expected-warning {{does not declare any constructor to initialize}} 9 (void)A(); // expected-error {{call to implicitly-deleted default constructor}}
|
copy-initialization.cpp | 4 explicit X(const X&); // expected-note {{candidate constructor}} 5 X(int*); // expected-note 3{{candidate constructor}} 6 explicit X(float*); // expected-note {{candidate constructor}} 12 X x1 = y; // expected-error{{no matching constructor for initialization of 'X'}} 16 X x2a(0); // expected-error{{call to constructor of 'X' is ambiguous}} 31 Foo(Foo&); // expected-note{{candidate constructor not viable}} 41 f(Bar()); // expected-error{{no viable constructor copying parameter of type 'const PR6757::Foo'}}
|
dr1301.cpp | 6 int a = A().n; // expected-error {{no matching constructor}} 15 B b; // expected-note {{deleted default constructor}} 21 B b; // expected-note {{'b' has a deleted default constructor}} 38 F f; // expected-note {{non-trivial default constructor}} 47 int h = H().n; // expected-error {{private constructor}} 50 H h; // expected-note {{inaccessible default constructor}} 63 J j; // expected-note 2{{non-trivial default constructor}}
|
overload-call-copycon.cpp | 2 class X { }; // expected-note {{the implicit copy constructor}} \ 3 // expected-note{{the implicit default constructor}} 11 copycon(xv); // expected-error{{no matching constructor}} 30 copycon2(bc); // expected-error{{no matching constructor}} 31 copycon2(bv); // expected-error{{no matching constructor}} 33 copycon2(ac); // expected-error{{no matching constructor}} 41 copycon3(bc); // expected-error{{no matching constructor}}
|
/external/eigen/failtest/ |
block_nonconst_ctor_on_const_xpr_2.cpp | 12 // row/column constructor
|
/ndk/tests/standalone/init-fini-arrays/ |
foo.cpp | 5 void __attribute__((constructor))
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/reflect/ |
ConstructorTest.java | 20 import java.lang.reflect.Constructor; 49 * @tests java.lang.reflect.Constructor#equals(java.lang.Object) 53 Constructor ctor1 = null, ctor2 = null; 67 * @tests java.lang.reflect.Constructor#getDeclaringClass() 71 // java.lang.reflect.Constructor.getDeclaringClass() 74 Constructor ctor = pclass.getConstructor(new Class[0]); 81 * @tests java.lang.reflect.Constructor#getExceptionTypes() 86 Constructor ctor = new ConstructorTestHelper().getClass() 97 * @tests java.lang.reflect.Constructor#getModifiers() 102 Constructor ctor = new ConstructorTestHelper().getClass( 185 Constructor constructor = Vector.class local 197 Constructor constructor = MockObject.class.getConstructor(Class.class); local [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Boolean/ |
15.6.2.js | 24 ECMA Section: 15.6.2 The Boolean Constructor 28 This test verifies that the Boolean constructor 42 var TITLE = "15.6.2 The Boolean Constructor; 15.6.2.1 new Boolean( value ); 15.6.2.2 new Boolean()"; 55 array[item++] = new TestCase( SECTION, "(new Boolean(1)).constructor", Boolean.prototype.constructor, (new Boolean(1)).constructor ); 62 array[item++] = new TestCase( SECTION, "(new Boolean(0)).constructor", Boolean.prototype.constructor, (new Boolean(0)).constructor ); 69 array[item++] = new TestCase( SECTION, "(new Boolean(-1)).constructor", Boolean.prototype.constructor, (new Boolean(-1)).constructor ) [all...] |
/external/clang/test/CXX/special/class.ctor/ |
p5-0x.cpp | 20 // A defaulted default constructor for a class X is defined as deleted if: 23 // default constructor, 24 union Deleted1a { UserProvidedDefCtor u; }; // expected-note {{default constructor of 'Deleted1a' is implicitly deleted because variant field 'u' has a non-trivial default constructor}} 25 Deleted1a d1a; // expected-error {{implicitly-deleted default constructor}} 37 Deleted2a d2a; // expected-error {{implicitly-deleted default constructor}} 39 int &&b; // expected-note {{default constructor of 'Deleted2b' is implicitly deleted because field 'b' of reference type 'int &&' would not be initialized}} 41 Deleted2b d2b; // expected-error {{deleted default constructor}} 51 // default constructor, 53 expected-warning {{does not declare any constructor}} \ [all...] |
/external/clang/test/CXX/class/class.union/ |
p1.cpp | 17 Ctor() { abort(); } // expected-note 2{{because type 'Ctor' has a user-provided default constructor}} expected-note 2{{here}} 20 Ctor2(); // expected-note {{because type 'Ctor2' has a user-provided default constructor}} expected-note 2{{here}} 22 class CtorTmpl { // expected-note {{because type 'CtorTmpl' has no default constructor}} 23 template<typename T> CtorTmpl(); // expected-note {{implicit default constructor suppressed by user-declared constructor}} 26 class CopyCtor { // expected-note 2{{because no constructor can be used to copy an object of type 'const CopyCtor'}} 39 Virtual v; // expected-error {{union member 'v' has a non-trivial copy constructor}} 40 VirtualBase vbase; // expected-error {{union member 'vbase' has a non-trivial copy constructor}} 41 Ctor ctor; // expected-error {{union member 'ctor' has a non-trivial constructor}} 42 Ctor2 ctor2; // expected-error {{union member 'ctor2' has a non-trivial constructor}} [all...] |
/external/clang/test/CXX/special/class.inhctor/ |
p4.cpp | 5 // A[n inheriting] constructor [...] has the same access as the corresponding 6 // constructor [in the base class]. 18 using A::A; // expected-error {{private constructor}} expected-note {{implicitly declared protected here}} 23 B b1{X<1>{}}; // expected-error {{calling a protected constructor}} 40 FA fa1{X<1>{}}; // expected-error {{calling a protected constructor}} 41 FA fa2{X<2>{}}; // expected-error {{calling a private constructor}} 44 // It is deleted if the corresponding constructor [...] is deleted.
|
/external/javassist/src/main/javassist/expr/ |
ConstructorCall.java | 26 * Constructor call such as <code>this()</code> and <code>super()</code> 27 * within a constructor body. 33 * Undocumented constructor. Do not use; internal-use only. 52 throw new NotFoundException("this is a constructor call. Call getConstructor()."); 56 * Returns the called constructor. 63 * Returns true if the called constructor is not <code>this()</code> 64 * but <code>super()</code> (a constructor declared in the super class).
|
/external/objenesis/main/src/org/objenesis/instantiator/sun/ |
SunReflectionFactoryHelper.java | 18 import java.lang.reflect.Constructor; 34 public static Constructor newConstructorForSerialization(Class type, Constructor constructor) { 42 return (Constructor) newConstructorForSerializationMethod.invoke( 43 reflectionFactory, new Object[] {type, constructor}); 88 "newConstructorForSerialization", new Class[] {Class.class, Constructor.class});
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Number/ |
15.7.2.js | 24 ECMA Section: 15.7.2 The Number Constructor 29 expression, it is a constructor: it initializes 52 var TITLE = "The Number Constructor"; 64 // constructor property is the same as Number.prototype.constructor. 66 array[item++] = new TestCase(SECTION, "(new Number()).constructor", Number.prototype.constructor, (new Number()).constructor ); 75 array[item++] = new TestCase(SECTION, "(new Number(0)).constructor", Number.prototype.constructor, (new Number(0)).constructor ) [all...] |
/libcore/luni/src/main/java/java/lang/reflect/ |
Constructor.java | 43 * This class represents a constructor. Information about the constructor can be 44 * accessed, and the constructor can be invoked dynamically. 46 * @param <T> the class that declares this constructor 48 public final class Constructor<T> extends AccessibleObject implements GenericDeclaration, 59 TypeVariable<Constructor<T>>[] formalTypeParameters; 80 private Constructor(){ 89 * the class this constructor object belongs to 91 * the parameter types of the constructor 93 * the exception types of the constructor [all...] |