Ticket #11797: main.cpp

File main.cpp, 289 bytes (added by tokoe, 5 years ago)

test case that demonstrate the problem

Line 
1#include <iostream>
2
3#include <unistd.h>
4
5class MyClass
6{
7public:
8 MyClass()
9 {
10 std::cout << "get pid from ctor=" << ::getpid() << std::endl;
11 }
12};
13
14static MyClass s_myClass;
15
16int main()
17{
18 std::cout << "get pid from main=" << ::getpid() << std::endl;
19
20 return 0;
21}