summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/pr34163.cpp
blob: a200a0f509bcec006781bef675b765b846971f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-linux-gnu -o - -x c++ %s | FileCheck %s

void f(struct X *) {}

// CHECK: @_ZTV1X =
struct X {
  void a() { delete this; }
  virtual ~X() {}
  virtual void key_function();
};

// CHECK: define {{.*}} @_ZN1X12key_functionEv(
void X::key_function() {}