Home | History | Annotate | Download | only in CodeGenCXX

Lines Matching full:constexpr

9       constexpr U(int x) : x(x) {}
10 constexpr U(const char *y) : y(y) {}
15 constexpr A(int n, double d, int x) : n(n), d(d), u(x) {}
16 constexpr A(int n, double d, const char *y) : n(n), d(d), u(y) {}
20 extern constexpr A a(1, 2.0, 3);
23 extern constexpr A b(4, 5, "hello");
38 constexpr C() : c(0) {}
46 constexpr D() : d(5) {}
73 struct Test : Ts... { constexpr Test() : Ts()..., n(5) {} int n; };
77 extern constexpr Test1 t1 = Test1();
83 extern constexpr DND dnd = DND();
86 extern constexpr DNN dnn = DNN();
91 extern constexpr Test2 t2 = Test2();
94 struct Test3 : C, PackedD { constexpr Test3() {} };
96 extern constexpr Test3 t3 = Test3();
101 extern constexpr int arr[2] = { 4 };
104 extern constexpr char c[6][4] = { "foo", "a", { "bar" }, { 'x', 'y', 'z' }, { "b" }, '1', '2', '3' };
107 extern constexpr unsigned char uc[] = { "foo" };
109 struct C { constexpr C() : n(5) {} int n, m = 3 * n + 1; };
112 constexpr C ctors[3];
115 struct D { int n[2]; int m[3]; } extern constexpr d = { 1, 2, 3, 4, 5 };
120 constexpr E() : c("foo"), d("x") {}
123 extern constexpr E e = E();
126 struct F { constexpr F() : n(4) {} int n; };
161 extern constexpr int (D::*da) = &B1::a;
162 extern constexpr int (D::*db) = &C::b;
163 extern constexpr int (D::*dc) = &B2::c;
164 extern constexpr int (D::*dd) = &D::d;
165 extern constexpr int (D::*de) = &C::e;
166 extern constexpr int (D::*dz) = &D::z;
175 extern constexpr int (B1::*ba) = (int(B1::*))&B1::a;
176 extern constexpr int (B1::*bb) = (int(B1::*))&C::b;
177 extern constexpr int (B2::*bc) = (int(B2::*))&B2::c;
178 extern constexpr int (B2::*bd) = (int(B2::*))&D::d;
179 extern constexpr int (B1::*be) = (int(B1::*))&C::e;
180 extern constexpr int (B1::*b1z) = (int(B1::*))&D::z;
181 extern constexpr int (B2::*b2z) = (int(B2::*))&D::z;
191 extern constexpr void (D::*df)() = &C::f;
192 extern constexpr void (D::*dg)() = &B1::g;
193 extern constexpr void (D::*dh)() = &B2::h;
194 extern constexpr void (D::*di)() = &D::i;
195 extern constexpr void (D::*dj)() = &C::j;
196 extern constexpr void (D::*dk)() = &C::k;
197 extern constexpr void (D::*dl)() = &D::l;
198 extern constexpr void (D::*dm)() = &D::m;
210 extern constexpr void (B1::*bf)() = (void(B1::*)())&C::f;
211 extern constexpr void (B1::*bg)() = (void(B1::*)())&B1::g;
212 extern constexpr void (B2::*bh)() = (void(B2::*)())&B2::h;
213 extern constexpr void (B2::*bi)() = (void(B2::*)())&D::i;
214 extern constexpr void (B1::*bj)() = (void(B1::*)())&C::j;
215 extern constexpr void (B1::*bk)() = (void(B1::*)())&C::k;
216 extern constexpr void (B1::*b1l)() = (void(B1::*)())&D::l;
217 extern constexpr void (B1::*b1m)() = (void(B1::*)())&D::m;
218 extern constexpr void (B2::*b2l)() = (void(B2::*)())&D::l;
219 extern constexpr void (B2::*b2m)() = (void(B2::*)())&D::m;
224 constexpr Lit() : n(5) {}
236 constexpr int factorial(int n) {
242 constexpr NonTrivialDtor() : n(factorial(5)), p(&n) {}
255 constexpr VolatileMember() : n(5) {}
263 constexpr Both() : n(10) {}
286 constexpr A(double d) : d(d) {}
291 constexpr B() : A(2.0), c{'h', 'e', 'l', 'l', 'o'} {}
292 constexpr B(int n) : A(n), c{'w', 'o', 'r', 'l', 'd'} {}
297 constexpr C() : n(64) {}
301 constexpr D() : A(1.0), B(), s(5) {}
305 constexpr E() : B(3), c{'b','y','e'} {}
361 constexpr long a(bool x) { return x ? 0 : (long)&&lbl + (0 && ({lbl: 0;})); }
375 constexpr X() : T() {}
384 constexpr int *p = &n;
397 constexpr int &r = n;
413 constexpr double d = 4.3;
416 constexpr S s = S();
418 constexpr const S *p = &r;
419 constexpr int S::*mp = &S::n;
420 constexpr int a[3] = { 1, 4, 9 };