HomeSort by relevance Sort by last modified time
    Searched full:constructor (Results 1 - 25 of 7463) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CodeGen/
2008-03-03-CtorAttrType.c 2 int __attribute__((constructor)) foo(void) {
5 void __attribute__((constructor)) bar(void) {}
attribute_constructor.c 3 void foo() __attribute__((constructor));
  /external/clang/test/Sema/
constructor-attribute.c 3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to functions}}
4 int f() __attribute__((constructor));
5 int f() __attribute__((constructor(1)));
6 int f() __attribute__((constructor(1,2))); // expected-error {{attribute takes no more than 1 argument}}
7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires parameter 1 to be an integer constant}}
  /external/clang/test/SemaCXX/
default-arg-special-member.cpp 7 foo(const foo&); // expected-note {{was a copy constructor}}
10 foo::foo(foo&, int = 0) { } // expected-warning {{makes this constructor a copy constructor}}
11 foo::foo(int = 0) { } // expected-warning {{makes this constructor a default constructor}}
12 foo::foo(const foo& = 0) { } //expected-warning {{makes this constructor a default constructor}}
direct-initializer.cpp 16 class X { // expected-note{{candidate constructor (the implicit copy constructor)}}
18 explicit X(int); // expected-note{{candidate constructor}}
19 X(float, float, float); // expected-note{{candidate constructor}}
20 X(float, Y); // expected-note{{candidate constructor}}
23 class Z { // expected-note{{candidate constructor (the implicit copy constructor)}}
25 Z(int); // expected-note{{candidate constructor}}
31 X x3(1.0, 1.0); // expected-error{{no matching constructor for initialization of 'X'}}
35 Z z; // expected-error{{no matching constructor for initialization of 'Z'}
    [all...]
copy-constructor-error.cpp 4 S (S); // expected-error {{copy constructor must pass its first argument by reference}}
19 A::A(A&, int = 0) { } // expected-warning {{makes this constructor a copy constructor}}
anonymous-struct.cpp 4 S(); // expected-note {{because type 'S' has a user-declared constructor}}
9 S x; // expected-error {{anonymous struct member 'x' has a non-trivial constructor}}
value-initialization.cpp 4 // expected-warning {{does not declare any constructor to initialize}}
10 (void)A(); // expected-error {{call to deleted constructor}}
cxx0x-deleted-default-ctor.cpp 13 bad_union u; // expected-error {{call to deleted constructor}}
17 bad_union2 u2; // expected-error {{call to deleted constructor}}
24 bad_anon a; // expected-error {{call to deleted constructor}}
30 bad_anon2 a2; // expected-error {{call to deleted constructor}}
54 bad_const bc; // expected-error {{call to deleted constructor}}
71 bad_field_default bfd; // expected-error {{call to deleted constructor}}
74 bad_base_default bbd; // expected-error {{call to deleted constructor}}
79 bad_field_dtor bfx; // expected-error {{call to deleted constructor}}
82 bad_base_dtor bbx; // expected-error {{call to deleted constructor}}
91 has_amb_field haf; // expected-error {{call to deleted constructor}}
    [all...]
warn-global-constructors.cpp 11 // This global constructor is avoidable based on initialization order.
12 int d = b; // expected-warning {{global constructor}}
15 int e = opaque_int(); // expected-warning {{global constructor}}
16 int f = b; // expected-warning {{global constructor}}
24 A d = { opaque_int() }; // expected-warning {{global constructor}}
26 A f = A(a); // expected-warning {{global constructor}}
27 A g(a); // expected-warning {{global constructor}}
34 A a; // expected-warning {{global constructor}}
35 A b[10]; // expected-warning {{global constructor}}
36 A c[10][10]; // expected-warning {{global constructor}}
    [all...]
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'}}
explicit.cpp 2 namespace Constructor {
43 class Y { }; // expected-note {{candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Conversion::Z' to 'const Conversion::Y &' for 1st argument}} \
44 expected-note {{candidate constructor (the implicit move constructor) not viable: no known conversion from 'Conversion::Z' to 'Conversion::Y &&' for 1st argument}} \
45 expected-note {{candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Conversion::Z' to 'const Conversion::Y &' for 1st argument}} \
46 expected-note {{candidate constructor (the implicit move constructor) not viable: no known conversion from 'Conversion::Z' to 'Conversion::Y' for 1st argument}} \
47 expected-note {{candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Conversion::Z' to 'const Con (…)
    [all...]
  /external/clang/test/CXX/special/class.ctor/
p4-0x.cpp 3 // A constructor shall not be declared with a ref-qualifier.
5 X() &; // expected-error{{ref-qualifier '&' is not allowed on a constructor}}
6 X(int) &&; // expected-error{{ref-qualifier '&&' is not allowed on a constructor}}
p5-0x.cpp 20 // A defaulted default constructor for a class X is defined as deleted if:
23 // default constructor,
25 Deleted1a d1a; // expected-error {{deleted constructor}}
29 // default constructor is non-trivial.
31 NotDeleted1b nd1b; // unexpected-error {{deleted constructor}}
36 Deleted2a d2a; // expected-error {{deleted constructor}}
44 // default constructor,
46 expected-warning {{does not declare any constructor}} \
48 Deleted3a d3a; // expected-error {{deleted constructor}}
50 Deleted3b d3b; // expected-error {{deleted constructor}}
    [all...]
  /dalvik/tests/004-annotations/src/android/test/anno/
AnnoSimpleConstructor.java 5 @Target(ElementType.CONSTRUCTOR)
  /dalvik/tests/042-new-instance/
info.txt 1 Test various permutations of Class.newInstance and Constructor.newInstance,
  /external/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/
p2.cpp 17 template<typename T> X1<T>::X1<T>(int) { } // expected-error{{out-of-line constructor for 'X1' cannot have template arguments}}
18 template<typename T> (X1<T>::X1<T>)(float) { } // expected-error{{out-of-line constructor for 'X1' cannot have template arguments}}
20 // Error recovery: out-of-line constructor names intended to be types
21 X0::X0 X0::f1() { return X0(); } // expected-error{{qualified reference to 'X0' is a constructor name rather than a type wherever a constructor can be declared}}
25 template<typename T> X1<T>::X1<T> X1<T>::f2() { } // expected-error{{qualified reference to 'X1' is a constructor name rather than a template name wherever a constructor can be declared}}
26 template<typename T> X1<T>::X1<T> (X1<T>::f2)(int) { } // expected-error{{qualified reference to 'X1' is a constructor name rather than a template name wherever a constructor can be declared}}
  /external/mesa3d/src/glsl/tests/
constructor-05.glsl 1 /* FAIL - too few components supplied to constructor */
  /libcore/luni/src/test/java/tests/api/java/lang/reflect/
MalformedParameterizedTypeExceptionTests.java 3 import java.lang.reflect.Constructor;
13 Constructor<MalformedParameterizedTypeException> ctor = MalformedParameterizedTypeException.class
15 assertNotNull("Parameterless constructor does not exist.", ctor);
16 assertTrue("Constructor is not protected", Modifier.isPublic(ctor
  /libcore/luni/src/test/java/libcore/java/lang/reflect/
ConstructorTest.java 19 import java.lang.reflect.Constructor;
24 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(new Class[0]); local
25 Class[] exceptions = constructor.getExceptionTypes();
30 exceptions = constructor.getExceptionTypes();
37 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); local
38 Class[] parameters = constructor.getParameterTypes();
43 parameters = constructor.getParameterTypes();
49 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor((Class[]) null) local
70 Constructor<?> constructor = ConstructorTestHelper.class.getDeclaredConstructor( local
    [all...]
  /external/clang/test/CXX/special/class.copy/
p9.cpp 18 struct ImplicitNonConstCopy1 : NonConstCopy { // expected-note {{candidate constructor}}
19 ImplicitNonConstCopy1(); // expected-note {{candidate constructor}}
22 struct ImplicitNonConstCopy2 { // expected-note {{candidate constructor}}
23 ImplicitNonConstCopy2(); // expected-note {{candidate constructor}}
27 struct ImplicitNonConstCopy3 { // expected-note {{candidate constructor}}
28 ImplicitNonConstCopy3(); // expected-note {{candidate constructor}}
32 struct ImplicitNonConstCopy4 : VirtualInheritsNonConstCopy { // expected-note {{candidate constructor}}
33 ImplicitNonConstCopy4(); // expected-note {{candidate constructor}}
p11.0x.copy.cpp 12 DeletedNTVariant DVb(DVa); // expected-error{{call to deleted constructor}}
21 DeletedNTVariant2 DV2b(DV2a); // expected-error{{call to deleted constructor}}
35 HasNoAccess HNAb(HNAa); // expected-error{{call to deleted constructor}}
58 IsAmbiguous IAb(IAa); // expected-error{{call to deleted constructor}}
64 Deleted Db(Da); // expected-error{{call to deleted constructor}}
78 HasNoAccessDtor HNADb(HNADa); // expected-error{{call to deleted constructor}}
90 RValue RVb(RVa); // expected-error{{call to deleted constructor}}
  /external/clang/test/CXX/dcl.decl/dcl.init/
p5.cpp 13 struct S { // expected-error {{implicit default constructor for 'S' must explicitly initialize the reference member}} \
14 // expected-note {{candidate constructor (the implicit copy constructor) not viable}}
17 S s; // expected-note {{implicit default constructor for 'S' first required here}}
19 return S(); // expected-error {{no matching constructor for initialization of 'S'}}
  /external/javassist/src/main/javassist/
CtNewConstructor.java 27 * <p>A class initializer (static constructor) cannot be created by the
38 * constructor. That is, the default constructor is invoked.
45 * constructor.
51 * to a super-class' constructor. The signature of that
52 * constructor must be the same as that of the created constructor.
57 * Compiles the given source code and creates a constructor.
58 * The source code must include not only the constructor body
62 * @param declaring the class to which the created constructor is added
    [all...]
  /external/clang/test/CXX/special/class.inhctor/
p7.cpp 5 B1(int); // expected-note {{previous constructor}}
8 B2(int); // expected-note {{conflicting constructor}}
12 using B2::B2; // expected-error {{already inherited constructor with the same signature}}

Completed in 862 milliseconds

1 2 3 4 5 6 7 8 91011>>