1 // { dg-do compile { target c++11 } } 2 // { dg-final { scan-assembler-not "_ZNSt10unique_ptrC1Ei" } } 3 4 namespace std { 5 struct unique_ptr { unique_ptrunique_ptr6 constexpr unique_ptr(int) : p() { } ~unique_ptrunique_ptr7 ~unique_ptr() { } 8 void* p; 9 }; 10 } 11 f()12void f() 13 { 14 static std::unique_ptr p(1); 15 } 16 main()17int main() 18 { 19 f(); 20 } 21