Clang Project

clang_source_code/test/CodeGenCXX/pr34163.cpp
1// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-linux-gnu -o - -x c++ %s | FileCheck %s
2
3void f(struct X *) {}
4
5// CHECK: @_ZTV1X =
6struct X {
7  void a() { delete this; }
8  virtual ~X() {}
9  virtual void key_function();
10};
11
12// CHECK: define {{.*}} @_ZN1X12key_functionEv(
13void X::key_function() {}
14