Training courses
Kernel and Embedded Linux
Bootlin training courses
1 2 3 4 5 6 7 8 9 10 11 12 13
// RUN: %clang_cc1 -std=c++11 %s -Wunused -verify // expected-no-diagnostics template<typename T> void destroy(T* ptr) { ptr->~T(); (*ptr).~T(); } void destructor() { auto lambda = []{}; destroy(&lambda); }