Lines Matching +defs:c +defs:mode
1 // RUN: %clang_cc1 -std=c++2a -verify %s -fcxx-exceptions -triple=x86_64-linux-gnu -Wno-mismatched-new-delete
158 char c = ((A*)this)->f();
174 static_assert(d.c == 'C');
219 static_assert(cc2->f()->c == 'C');
240 struct C : A, C2 { A *c = dynamic_cast<A*>(static_cast<C2*>(this)); };
250 static_assert(g.c == (C*)&g);
592 unsigned char c;
593 return c; // expected-note {{read of uninitialized object}}
638 constexpr void operator+=(char c) { buf[n++] = c; }
646 constexpr A(Buf &buf, char c) : buf(buf), c(c) { buf += c; }
647 constexpr ~A() { buf += c; }
650 char c;
661 A c, &&d, e;
667 : A(buf, 'a'), c(buf, 'c'), d(ref(A(buf, 'd'))), e(A(buf, 'e')), f(buf, 'f'), u(buf) {
695 for (A &&c = A(buf, 'c'); A d = A(buf, 'd'); A(buf, 'e')) {
807 constexpr int vdtor_3(int mode) {
816 switch (mode) {
1127 constexpr bool virt_dtor(int mode, const char *expected) {
1131 switch (mode) {
1299 constexpr const A &c = A{false}; // expected-error {{constant}} expected-note {{non-trivial destruction of lifetime-extended temporary}}
1461 C c = {.n = 1};
1462 c.a = B{2}.a;
1463 return c.a.n == 2;
1469 C c = {.n = 1};
1470 c.a.operator=(B{2}.a); // expected-note 2{{member call on member 'a' of union with active member 'n' is not allowed in a constant expression}}
1471 return c.a.n == 2;