Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-ref1.C

raw
1 // PR c++/92852
2 // { dg-do compile { target c++14 } }
3
4 struct S { int operator<<(const int &); } glob;
5 void foo()
6 {
7 S& message_stream = glob;
8 auto format = [&message_stream](auto && x)
9 { message_stream << x ; };
10 format(3);
11 format(4u);
12 }