Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

// 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);
}