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

Function main

tests/Class2Test.cpp:53–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53int main()
54{
55 S s;
56 S s2;
57
58 s.count++;
59
60 Test t;
61
62 char * raw = reinterpret_cast<char*>(&s+1);
63 Test * p = reinterpret_cast<Test*>(&raw[s.count]); // missing the user-defined converion op here for s.count to int
64 *p = (t);
65 *p = s2.count;
66
67 s.count += sizeof(p);
68 s.count += alignof(p);
69 s.count += p ? 1 : 2;
70}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected