MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / main

Function main

tests/StdInitializerList2Test.cpp:4–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <initializer_list>
3
4int main(int argc, const char*[])
5{
6 int i;
7 int x;
8 auto list = std::initializer_list<int>{i, x};
9
10 auto lamb = [=]{ return list; };
11
12 auto l = lamb();
13
14 auto lamb2 = [=]{ return std::initializer_list<int>{i, x}; };
15
16 auto l2 = lamb2();
17}
18
19

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected