/external/clang/test/SemaCXX/ |
defaulted-private-dtor.cpp | 4 // A private, but nonetheless trivial, destructor. 9 BadDtor *p = new BadDtor[3]; // expected-error {{private destructor}} 10 delete [] p; // expected-error {{private destructor}} 11 const BadDtor &dd2 = BadDtor(); // expected-error {{private destructor}} 12 BadDtor dd; // expected-error {{private destructor}} 13 throw dd; // expected-error {{private destructor}} 17 BadDtor bd; // expected-note {{inaccessible destructor}} 20 struct W : BadDtor { // expected-note {{inaccessible destructor}} 24 struct X : BadDtor { // expected-error {{private destructor}} 28 BadDtor dd; // expected-error {{private destructor}} [all...] |
trivial-destructor.cpp | 5 static_assert(__has_trivial_destructor(T1), "T1 has trivial destructor!"); 10 static_assert(!__has_trivial_destructor(T2), "T2 has a user-declared destructor!"); 15 static_assert(__has_trivial_destructor(T3), "T3 has a virtual function (but still a trivial destructor)!"); 19 static_assert(__has_trivial_destructor(T4), "T4 has a virtual base class! (but still a trivial destructor)!"); 35 static_assert(!__has_trivial_destructor(T7), "t2 does not have a trivial destructor!"); 39 static_assert(!__has_trivial_destructor(T8), "The base class T2 does not have a trivial destructor!");
|
warn-exit-time-destructors.cpp | 5 A a; // expected-warning {{declaration requires an exit-time destructor}} 6 A b[10]; // expected-warning {{declaration requires an exit-time destructor}} 7 A c[10][10]; // expected-warning {{declaration requires an exit-time destructor}} 18 static A a; // expected-warning {{declaration requires an exit-time destructor}} 19 static A b[10]; // expected-warning {{declaration requires an exit-time destructor}} 20 static A c[10][10]; // expected-warning {{declaration requires an exit-time destructor}}
|
virtual-base-used.cpp | 10 NoDestroy x; // expected-error {{field of type 'NoDestroy' has private destructor}} 16 void D::foo() { // expected-note {{implicit destructor for 'B' first required here}} 20 NoDestroy x; // expected-error {{field of type 'NoDestroy' has private destructor}} 22 struct F : public E { // expected-note {{implicit destructor for 'E' first required here}} 28 void G::foo() { // expected-note {{implicit destructor for 'F' first required here}} 32 NoDestroy x; // expected-error {{field of type 'NoDestroy' has private destructor}} 41 void J::foo() { // expected-note {{implicit destructor for 'H' first required here}}
|
PR9572.cpp | 5 struct Foo : public Base { // expected-error {{base class 'Base' has private destructor}} 10 Bar() { } // expected-note {{implicit destructor for 'Foo' first required here}}
|
destructor.cpp | 20 // expected-error{{destructor cannot be declared 'static'}} \ 21 // expected-error{{destructor cannot have any parameters}} \ 22 // expected-error{{destructor cannot be variadic}} \ 23 // expected-error{{destructor cannot have a return type}} \ 24 // expected-error{{'const' qualifier is not allowed on a destructor}} 29 // expected-error{{destructor cannot have a return type}} 37 ~E_typedef(); // expected-error{{destructor cannot be declared using a typedef 'E_typedef' (aka 'E') of the class name}} 42 ~F(); // expected-error {{destructor cannot be redeclared}} 45 ~; // expected-error {{expected a class name after '~' to name a destructor}} 46 ~undef(); // expected-error {{expected the class name after '~' to name a destructor}} [all...] |
implicit-virtual-member-functions.cpp | 12 void B::f() { // expected-note {{implicit destructor for 'B' first required here}} 20 C::C() { } // expected-note {{implicit destructor for 'C' first required here}} 27 new D; // expected-note {{implicit destructor for 'D' first required here}}
|
/external/clang/test/Sema/ |
constructor-attribute.c | 9 int x __attribute__((destructor)); // expected-warning {{'destructor' attribute only applies to functions}} 10 int f() __attribute__((destructor)); 11 int f() __attribute__((destructor(1))); 12 int f() __attribute__((destructor(1,2))); // expected-error {{attribute takes no more than 1 argument}} 13 int f() __attribute__((destructor(1.0))); // expected-error {{'destructor' attribute requires parameter 1 to be an integer constant}}
|
/external/clang/test/CXX/special/class.dtor/ |
p5-0x.cpp | 13 // A defaulted destructor for a class X is defined as deleted if: 16 // destructor. 19 NonTrivDtor n; // expected-note {{destructor of 'A1' is implicitly deleted because variant field 'n' has a non-trivial destructor}} 25 NonTrivDtor n; // expected-note {{because variant field 'n' has a non-trivial destructor}} 31 NonTrivDtor n[3]; // expected-note {{because variant field 'n' has a non-trivial destructor}} 37 NonTrivDtor n[3]; // expected-note {{because variant field 'n' has a non-trivial destructor}} 43 // M has a deleted or inaccessible destructor. 46 DeletedDtor a; // expected-note {{because field 'a' has a deleted destructor}} 51 InaccessibleDtor a; // expected-note {{because field 'a' has an inaccessible destructor}} [all...] |
p2-0x.cpp | 3 // A destructor shall not be declared with a ref-qualifier. 5 ~X() &; // expected-error{{ref-qualifier '&' is not allowed on a destructor}} 9 ~Y() &&; // expected-error{{ref-qualifier '&&' is not allowed on a destructor}}
|
p10-0x.cpp | 9 x->~decltype(*x)(); // expected-error{{the type of object expression ('const int') does not match the type being destroyed ('decltype(*x)' (aka 'const int &')) in pseudo-destructor expression}} \ 13 y->~decltype(*y)(); // expected-error{{destructor type 'decltype(*y)' (aka 'const A &') in object destruction expression does not match the type 'const A' of the object being destroyed}} 14 y->~decltype(T())(); // expected-error{{destructor type 'decltype(T())' in object destruction expression does not match the type 'const A' of the object being destroyed}} 21 x->~decltype(*x)(); // expected-error{{destructor type 'decltype(*x)' (aka 'const A &') in object destruction expression does not match the type 'const A' of the object being destroyed}} 23 x->~decltype(B())(); // expected-error{{destructor type 'decltype(B())' (aka 'B') in object destruction expression does not match the type 'const A' of the object being destroyed}} 24 x->~decltype(x)(); // expected-error{{destructor type 'decltype(x)' (aka 'const A *') in object destruction expression does not match the type 'const A' of the object being destroyed}} 26 x->::A::~decltype(*x)(); // expected-error{{expected a class name after '~' to name a destructor}} 33 expected-error{{the type of object expression ('int') does not match the type being destroyed ('decltype(intp())' (aka 'int *')) in pseudo-destructor expression}} 34 i.~decltype(intp())(); // expected-error{{the type of object expression ('int') does not match the type being destroyed ('decltype(intp())' (aka 'int *')) in pseudo-destructor expression}} 36 pi.~decltype(int())(); // expected-error{{the type of object expression ('int *') does not match the type being destroyed ('decltype(int())' (aka 'int')) in pseudo-destructor expression} [all...] |
/ndk/sources/cxx-stl/gabi++/src/ |
cxxabi_vec.cc | 73 destructor_func destructor) 75 destructor_(destructor) {} 123 destructor_func destructor) { 125 constructor, destructor, 133 destructor_func destructor, 141 constructor, destructor, alloc, 149 destructor_func destructor, 184 constructor, destructor); 204 destructor_func destructor) { 209 scoped_cleanup cleanup(array_address, n, element_size, destructor); [all...] |
/external/clang/test/CXX/expr/expr.unary/expr.new/ |
p17.cpp | 13 new dtor[0]; // expected-error{{calling a private destructor of class 'dtor'}} 14 new dtor[3]; // expected-error{{calling a private destructor of class 'dtor'}} 15 new dtor[3][3]; // expected-error{{calling a private destructor of class 'dtor'}}
|
/external/chromium/base/threading/ |
thread_local_storage_posix.cc | 11 ThreadLocalStorage::Slot::Slot(TLSDestructorFunc destructor) 14 Initialize(destructor); 17 bool ThreadLocalStorage::Slot::Initialize(TLSDestructorFunc destructor) { 19 int error = pthread_key_create(&key_, destructor);
|
/external/chromium_org/base/threading/ |
thread_local_storage_posix.cc | 11 ThreadLocalStorage::Slot::Slot(TLSDestructorFunc destructor) { 14 Initialize(destructor); 17 bool ThreadLocalStorage::StaticSlot::Initialize(TLSDestructorFunc destructor) { 19 int error = pthread_key_create(&key_, destructor);
|
/external/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/ |
initialization-nobug-extra.cc | 7 // Trivial constructor, non-trivial destructor:
|
/ndk/tests/standalone/init-fini-arrays/ |
foo.cpp | 11 void __attribute__((destructor))
|
/external/clang/test/Analysis/ |
dtors-in-dtor-cfg-output.cpp | 40 // CHECK: 1: this->a.~A() (Member object destructor) 41 // CHECK: 2: ~B() (Base object destructor) 42 // CHECK: 3: ~C() (Base object destructor) 43 // CHECK: 4: ~A() (Base object destructor) 51 // CHECK: 1: this->a.~A() (Member object destructor)
|
auto-obj-dtors-cfg-output.cpp | 188 // CHECK: 11: [B1.10].~A() (Implicit destructor) 189 // CHECK: 12: [B1.2].~A() (Implicit destructor) 201 // CHECK: 5: [B1.2].~A() (Implicit destructor) 215 // CHECK: 7: [B1.6].~A() (Implicit destructor) 216 // CHECK: 8: [B1.4].~A() (Implicit destructor) 219 // CHECK: 11: [B1.10].~A() (Implicit destructor) 220 // CHECK: 12: [B1.2].~A() (Implicit destructor) 230 // CHECK: 3: [B1.2].~A() (Implicit destructor) 231 // CHECK: 4: [B3.4].~A() (Implicit destructor) 232 // CHECK: 5: [B3.2].~A() (Implicit destructor) [all...] |
/development/ndk/tests/dlclose-destruction/jni/ |
main.c | 39 printf("Test destructor called !\n"); 41 fprintf(stderr, "Test destructor was *not* called !\n"); 44 fprintf(stderr, "Test destructor called but returned invalid value (%d)\n", x);
|
/external/clang/test/SemaObjCXX/ |
ivar-construct.mm | 10 struct X : T { }; // expected-error 2{{private destructor}} 15 X<Y> x; // expected-note{{implicit destructor}} 16 Y y; // expected-error{{private destructor}}
|
/external/bison/src/ |
symtab.h | 74 /** Any \c \%destructor declared specifically for this symbol. 77 functions. For example, if <tt>symbol::destructor = NULL</tt>, a 78 default \c \%destructor or a per-type \c \%destructor might be 81 code_props destructor; member in struct:symbol 86 \sa symbol::destructor */ 143 /** Set the \c destructor associated with \c sym. */ 144 void symbol_destructor_set (symbol *sym, code_props const *destructor); 146 /** Get the computed \c \%destructor for \c sym, which was initialized with 147 \c code_props_none_init if there's no \c \%destructor. * 201 code_props destructor; member in struct:__anon78 [all...] |
/bionic/libstdc++/src/ |
pure_virtual.cpp | 6 assert(!"Pure virtual function called. Are you calling virtual methods from a destructor?");
|
/external/chromium_org/mojo/public/bindings/generators/cpp_templates/ |
struct_definition | 2 $CLASS* $CLASS::New(mojo::Buffer* buf, mojo::Buffer::Destructor dtor) {
|
/external/chromium_org/tools/clang/plugins/tests/ |
inline_ctor.txt | 5 ./inline_ctor.h:14:3: warning: [chromium-style] Complex destructor has an inline body.
|