mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 03:06:06 +00:00

the class becoming complete and its inline methods being parsed. This replaces the hack of using the "late parsed template" flag to track member functions with bodies we've not parsed yet; instead we now use the "will have body" flag, which carries the desired implication that the function declaration *is* a definition, and that we've just not parsed its body yet. llvm-svn: 310776
14 lines
323 B
C++
14 lines
323 B
C++
// 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() {}
|