Here is just code:
class TestApp {};
int main()
{
    TestApp* test= new TestApp;
    {
        std::shared_ptr<TestApp> testPtr (test);
    }
    delete test;
}
The question is this: why this application will not crash on "delete test"? And otherwise crash when I remove scope braces.
 
     
    