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

Function main

tests/AutoHandlerTest.cpp:40–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40int main()
41{
42 int x = 2;
43 const char* p;
44 constexpr auto cei = 0;
45 auto constexpr cei2 = 0;
46 auto i = 0;
47 decltype(auto) xX = (i);
48 auto ii = &i;
49 auto& ir = i;
50 auto * ip = &i;
51 const auto * cip = &i;
52 auto * pp = p;
53 const auto * cp = p;
54 volatile const auto * vcp = p;
55 auto f = 1.0f;
56 auto c = 'c';
57 auto u = 0u;
58 decltype(u) uu = u;
59
60 [[maybe_unused]] auto mu = 0u;
61 [[maybe_unused]] decltype(u) muu = u;
62}
63

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected