Lines Matching refs:constexpr

9       constexpr U(int x) : x(x) {}  in U()
10 constexpr U(const char *y) : y(y) {} in U()
15 constexpr A(int n, double d, int x) : n(n), d(d), u(x) {} in A()
16 constexpr A(int n, double d, const char *y) : n(n), d(d), u(y) {} in A()
20 extern constexpr A a(1, 2.0, 3);
23 extern constexpr A b(4, 5, "hello");
38 constexpr C() : c(0) {} in C()
46 constexpr D() : d(5) {} in D()
73 struct Test : Ts... { constexpr Test() : Ts()..., n(5) {} int n; }; in Test()
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() {} }; in 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; }; in C()
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") {} in E()
123 extern constexpr E e = E();
126 struct F { constexpr F() : n(4) {} int n; }; in F()
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) {} in Lit()
254 constexpr int &&so = Subobj{ 1, 2, 3 }.b;
258 constexpr Derived() : Dummy{200}, Subobj{4, 5, 6} {} in Derived()
263 constexpr const int &comma = (1, (2, ConstDerived{}).b);
267 constexpr Subobj &&base = Derived{};
270 constexpr Derived &derived = static_cast<Derived&>(base);
274 constexpr int factorial(int n) { in factorial()
280 constexpr NonTrivialDtor() : n(factorial(5)), p(&n) {} in NonTrivialDtor()
293 constexpr VolatileMember() : n(5) {} in VolatileMember()
301 constexpr Both() : n(10) {} in Both()
324 constexpr A(double d) : d(d) {} in A()
329 constexpr B() : A(2.0), c{'h', 'e', 'l', 'l', 'o'} {} in B()
330 constexpr B(int n) : A(n), c{'w', 'o', 'r', 'l', 'd'} {} in B()
335 constexpr C() : n(64) {} in C()
339 constexpr D() : A(1.0), B(), s(5) {} in D()
343 constexpr E() : B(3), c{'b','y','e'} {} in E()
358 constexpr TemplateClass() : t{42} {} in TemplateClass()
393 constexpr int &&ref = 0;
394 extern constexpr int &ref2 = ref;
440 constexpr int f(int n) { return n; } in f()
442 struct Ctor { constexpr Ctor(int n) : k(n) {} int k; }; in Ctor()
443 struct Mutable { constexpr Mutable(int n) : k(n) {} mutable int k; }; in Mutable()
450 int scalar() { constexpr int a = { f(100) }; return a; } in scalar()
455 int agg() { constexpr Agg a = { f(101) }; return a.k; } in agg()
460 int ctor() { constexpr Ctor a = { f(102) }; return a.k; } in ctor()
469 int mutable_() { constexpr Mutable a = { f(103) }; return a.k; } in mutable_()
474 constexpr long a(bool x) { return x ? 0 : (long)&&lbl + (0 && ({lbl: 0;})); } in a()
488 constexpr X() : T() {} in X()
497 constexpr int *p = &n;
510 constexpr int &r = n;
526 constexpr double d = 4.3;
529 constexpr S s = S();
531 constexpr const S *p = &r;
532 constexpr int S::*mp = &S::n;
533 constexpr int a[3] = { 1, 4, 9 };
602 static constexpr const char &p = 'c';