1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <iostream> #include <cassert> struct Struct { std::string String; int Int; bool k; }; struct InStruct:Struct { InStruct():Struct(){} }; int main() { InStruct i; assert ( i.Int == 0); std::cout << "Hello"; }
1 2 3
t: t.cpp:19: int main(): Assertion `i.Int == 0' failed. Disallowed system call: SYS_kill