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