[ create a new paste ] login | about

Link: http://codepad.org/B0YeAsm8    [ raw code | output | fork ]

C++, pasted on Nov 8:
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";
}


Output:
1
2
3
t: t.cpp:19: int main(): Assertion `i.Int == 0' failed.

Disallowed system call: SYS_kill


Create a new paste based on this one


Comments: