Lines Matching full:auto
16 auto L = [i](auto a) { return i + a; }; in test()
23 auto L = [](auto a) { return a; }; in test()
34 T (*fp)(T) = [](auto a) { return a; }; in __anonf3d1ca8a0302()
41 void fooT(T t, T (*fp)(T) = [](auto a) { return a; }) { in __anonf3d1ca8a0402()
47 auto L = [](auto a) { return a; }; in test()
60 auto L = [](auto a) ->int { return a; }; //expected-note 2{{candidate template ignored}} in test()
67 auto L = [=](auto b, char c = 'x') { in test()
69 return [](auto a) ->decltype(a) { return a; }; in test()
83 auto L = [=](auto b) { in test()
84 return [](auto a) ->decltype(b)* { return (decltype(b)*)0; }; in test()
97 auto L = [=](auto b) { in test()
98 …return [](auto a) ->decltype(b)* { return (decltype(b)*)0; }; //expected-note{{candidate template … in test()
110 auto L = [=](auto b) { in test()
111 return [](auto a) { in test()
112 return [=](auto c) { in test()
113 return [](auto d) ->decltype(a + b + c + d) { return d; }; in test()
143 auto glambda = [](auto a) { return a; }; in test()
150 int& (*fpi)(int*) = [](auto* a) -> auto& { return *a; }; // OK in test()
155 auto L = [](auto a) { return a; }; in test()
168 auto L = [](auto a) ->int { return a; }; //expected-note 2{{candidate template ignored}} in test()
174 int* (*fp)(int*) = [](auto *a) -> auto* { return a; }; in test()
184 int& (*fpi)(int*) = [](auto* a) -> auto& { return *a; }; // OK in test()
185 int (*fp2)(int) = [](auto b) -> int { return b; }; in test()
186 int (*fp3)(char) = [](auto c) -> int { return c; }; in test()
187 char (*fp4)(int) = [](auto d) { return d; }; //expected-error{{no viable conversion}}\ in test()
188 … //expected-note{{candidate function [with d:auto = int]}} in test()
189 char (*fp5)(char) = [](auto e) -> int { return e; }; //expected-error{{no viable conversion}}\ in test()
203 int (*fp)(int, char, double) = [](auto ... a) -> int { vfun(a...); return 4; }; in variadic_test()
206 int (*fp2)(int, char, double) = [](auto ... a) { vfun(a...); return 4; }; in variadic_test()
215 auto L = [](auto a) -> int { return a; }; // expected-error {{cannot initialize}} in test()
217 int (&fp2)(int) = [](auto a) { return a; }; // expected-error{{non-const lvalue}} in test()
218 int (&&fp3)(int) = [](auto a) { return a; }; // expected-error{{no viable conversion}}\ in test()
226 // Here, the conversion function is named 'operator auto (*)(int)', and in test()
228 auto M = [](auto a) -> auto { return a; }; in test()
235 auto l = [](auto a) ->auto { return a; }(2); in __anonf3d1ca8a1f02()
236 auto l2 = [](auto a) ->decltype(auto) { return a; }(2);
237 auto l3 = [](auto a) { return a; }(2); in __anonf3d1ca8a2002()
242 void test(int i = [](auto a)->int { return a; }(3)) { in __anonf3d1ca8a2102()
250 auto L = [](auto a) { in test()
251 return [](auto b) { in test()
255 auto M = L(3); in test()
260 auto L = [](auto a) { in test()
261 return [](auto b) { //expected-note 3{{begins here}} in test()
266 auto M = L(3); //expected-note{{instantiation}} in test()
271 auto L = [](auto a) { in test()
272 return [](auto b) { in test()
279 auto L = [](auto a) { in test()
281 return [](auto b) ->decltype(a) { in test()
286 auto M = L(3); in test()
291 auto L = [](auto a) ->decltype(a) { in test()
293 return [](auto b) ->decltype(a) { //expected-error{{no viable conversion}}\ in test()
299 auto M = L(3); //expected-note{{in instantiation of}} in test()
302 auto L = [](auto a) { in test()
304 return [](auto ... b) ->decltype(a) { in test()
309 auto M = L(3); in test()
314 auto L = [](auto a) { in test()
316 return [](auto ... b) ->decltype(a) { in test()
321 auto M = L(3); in test()
327 auto L = [](auto a) { in test()
330 return [](auto ... c) ->decltype(b) { in test()
337 auto M = L(3); in test()
339 auto N = M('x'); in test()
347 auto L = [](auto a) { in test()
350 return [](auto ... c) ->decltype(b) { in test()
357 auto M = L('3'); in test()
359 auto N = M('x'); in test()
370 auto L = [](auto a) { in test()
376 return [](auto ... c) ->decltype(b) { in test()
385 auto M = L('3'); in test()
387 auto N = M('x'); in test()
400 auto test() { in test()
401 auto L = [](auto a) { in test()
407 return [](auto ... c) ->decltype(b) { in test()
419 auto L = x.test(); in test()
421 auto M = L('3'); in test()
423 auto N = M('x'); in test()
432 auto test() { in test()
433 auto L = [](auto a) { in test()
439 return [](auto ... c) { in test()
456 auto L = x.test(); in test()
458 auto M = L('3'); in test()
460 auto N = M('x'); in test()
461 auto O = N("\n3 = ", 3, "\n6.14 = ", 6.14, "\n4'123'456 = ", 4'123'456); in test()
473 auto L = [](auto a) -> void { in fooT()
474 auto M = [](char b) -> void { in fooT()
475 auto N = [](auto c) -> void { in fooT()
495 template<class T> auto fooT(T t) { in fooT()
496 auto L = [](auto a) { in fooT()
497 auto M = [](char b) { in fooT()
498 auto N = [](auto c) { in fooT()
517 template<class ... Ts> auto fooV(Ts ... ts) { in fooV()
518 auto L = [](auto ... a) { in fooV()
519 auto M = [](decltype(a) ... b) { in fooV()
520 auto N = [](auto c) { in fooV()
547 auto test() { in test()
548 auto L = [](auto a) { in test()
554 return [](auto ... c) { in test()
569 auto L = test();
570 auto L_test = L('4');
571 auto M = L('3');
572 auto M_test = M('a');
573 auto N = M('x');
574 auto O = N("\n3 = ", 3, "\n6.14 = ", 6.14, "\n4'123'456 = ", 4'123'456);
576 auto NP_result = np("\n3 = ", 3, "\n6.14 = ", 6.14, "\n4'123'456 = ", 4'123'456);
589 auto L = [](auto ... a) -> void { in fooV()
590 auto M = [](decltype(a) ... b) -> void { in fooV()
591 auto N = [](auto c) -> void { in fooV()
614 auto L = [](auto ... a) { in fooV()
615 auto M = [](decltype(a) ... b) -> void { in fooV()
616 auto N = [](auto c) -> void { in fooV()
629 auto M = L(L, ts...); in fooV()
634 auto L = [](auto ... a) { in fooV()
635 auto M = [](decltype(a) ... b) { in fooV()
636 auto N = [](auto c) -> void { in fooV()
650 auto M = L(L, ts...); in fooV()
671 auto test() { in test()
672 auto L = [](auto a) { in test()
678 return [](auto ... c) { in test()
695 auto L = x.test();
696 auto L_test = L('4');
697 auto M = L('3');
698 auto M_test = M('a');
699 auto N = M('x');
700 auto O = N("\n3 = ", 3, "\n6.14 = ", 6.14, "\n4'123'456 = ", 4'123'456);
702 auto NP_result = np("\n3 = ", 3, "\n6.14 = ", 6.14, "\n4'123'456 = ", 4'123'456);
712 auto test(T = T{}) { in test()
713 auto L = [](auto a) { in __anonf3d1ca8a4e02()
719 return [](auto ... c) { in __anonf3d1ca8a4e02()
737 auto L = x.test();
738 auto L_test = L('4');
739 auto M = L('3');
740 auto M_test = M('a');
741 auto N = M('x');
742 auto O = N("\n3 = ", 3, "\n6.14 = ", 6.14, "\n4'123'456 = ", 4'123'456);
744 auto NP_result = np("\n3 = ", 3, "\n6.14 = ", 6.14, "\n4'123'456 = ", 4'123'456);
752 auto L = [](auto a) -> int { in test()
753 auto M = [](auto b, decltype(a) b2) -> int { in test()
761 auto L = [](auto a) { return a; }; in foo()
769 auto L = [](auto b) { in test()
770 return [](auto a) ->decltype(a) { return a; }; in test()
789 template<class ... Ts> auto vfun(Ts&& ... ts) { in vfun()
796 auto L = [](auto ... As) { in test()
797 return [](auto b) ->decltype(b) { in test()
802 auto LL = L(1, 'a', 3.14, "abc"); in test()
820 auto startEnd = [](const char * sym) -> void { in finalizeDefaultAtomValues()
839 auto startEnd = [](const T *sym) -> void { in finalizeDefaultAtomValues()
875 enum { E = [](auto i) { return i; }(3) }; //expected-error{{inside of a constant expression}}\ in __anonf3d1ca8a5a02()
887 int L2 = ([](auto i) { return i; })(2); in __anonf3d1ca8a6102()
888 void fooG(int i = ([] (auto i) { return i; })(2)) { } in fooG()
889 int BG : ([](auto i) { return i; })(3); //expected-error{{inside of a constant expression}} \ in __anonf3d1ca8a6302()
892 int arrG[([](auto i) { return i; })(3)]; //expected-error{{inside of a constant expression}}\ in __anonf3d1ca8a6402()
894 int (*fpG)(int) = [](auto i) { return i; }; in __anonf3d1ca8a6502()
895 void fooptrG(int (*fp)(char) = [](auto c) { return 0; }) { } in fooptrG()
913 int L2 = ([](auto i) { return i; })(2); in __anonf3d1ca8a6d02()
914 void fooG(T i = ([] (auto i) { return i; })(2)) { } in fooG()
915 int BG : ([](auto i) { return i; })(3); //expected-error{{not an integral constant}}\ in __anonf3d1ca8a6f02()
918 int arrG[([](auto i) { return i; })(3)]; //expected-error{{must have a constant size}} \ in __anonf3d1ca8a7002()
920 int (*fpG)(T) = [](auto i) { return i; }; in __anonf3d1ca8a7102()
921 void fooptrG(T (*fp)(char) = [](auto c) { return 0; }) { } in __anonf3d1ca8a7202()
922 template<class U = char> int fooG2(T (*fp)(U) = [](auto a) { return 0; }) { return 0; } in fooG2()
923 template<class U = char> int fooG3(T (*fp)(U) = [](auto a) { return 0; }); in __anonf3d1ca8a7402()
939 int a = [](auto ...) { return 0; }(); in __anonf3d1ca8a7502() argument
943 int x = [](auto) { in __anonf3d1ca8a7602() argument
944 return [](auto... run_args) { in __anonf3d1ca8a7602()
952 int y = [](auto outer) { in __anonf3d1ca8a7802()
953 return [](auto inner) { in __anonf3d1ca8a7802()
962 auto f(T x) { in f()
963 auto g = [](auto&&... args) { in f()
964 auto h = [args...]() -> int { in f()
972 auto x = f(0)();
978 int d = [](auto x)->int { in __anonf3d1ca8a7c02()
989 void Method(char c = [](auto x)->char { in __anonf3d1ca8a7e02()
1001 void Method(char c = [](auto x)->char { in __anonf3d1ca8a8002()
1002 int d = [](auto y)->int { in __anonf3d1ca8a8002()
1016 [](auto x) noexcept(noexcept(x)) { } (0); in test()
1021 auto x = [](auto (*p)()) { return p(); }; in __anonf3d1ca8a8202()
1022 auto y = [](auto (*p)() -> auto) { return p(); }; in __anonf3d1ca8a8302() argument