Ticket #10459: steptest.cpp
File steptest.cpp, 308 bytes (added by , 10 years ago) |
---|
Line | |
---|---|
1 | class A { |
2 | public: |
3 | A() { x = 0; }; |
4 | virtual ~A() { x = 5; }; |
5 | |
6 | private: |
7 | int x; |
8 | }; |
9 | |
10 | int a() |
11 | { |
12 | int x = 0xabcdef; |
13 | if (true) |
14 | { |
15 | A myA; |
16 | if (x == 5) |
17 | return 3; |
18 | else if (x == 0xabcdef) |
19 | return 12; |
20 | else if (x == 12000) |
21 | return 5; |
22 | } |
23 | |
24 | return 17; |
25 | } |
26 | |
27 | |
28 | int main(int, char **) |
29 | { |
30 | a(); |
31 | |
32 | return 0; |
33 | } |