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

Function main

docs/examples/auto.cpp:36–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected