| 51 | }; |
| 52 | |
| 53 | int 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected