initialization-nobug-extra.cc revision 5f799c78e5b1bd8105bab77a0935f27ee808dc97
15f799c78e5b1bd8105bab77a0935f27ee808dc97Kostya Serebryany// Linker initialized: 25f799c78e5b1bd8105bab77a0935f27ee808dc97Kostya Serebryanyint getAB(); 35f799c78e5b1bd8105bab77a0935f27ee808dc97Kostya Serebryanystatic int ab = getAB(); 45f799c78e5b1bd8105bab77a0935f27ee808dc97Kostya Serebryany// Function local statics: 55f799c78e5b1bd8105bab77a0935f27ee808dc97Kostya Serebryanyint countCalls(); 65f799c78e5b1bd8105bab77a0935f27ee808dc97Kostya Serebryanystatic int one = countCalls(); 75f799c78e5b1bd8105bab77a0935f27ee808dc97Kostya Serebryany// Constexpr: 85f799c78e5b1bd8105bab77a0935f27ee808dc97Kostya Serebryanyint getCoolestInteger(); 95f799c78e5b1bd8105bab77a0935f27ee808dc97Kostya Serebryanystatic int coolest_integer = getCoolestInteger(); 10