llvm-project/clang/test/CodeGenCXX/member-functions.cpp

15 lines
218 B
C++
Raw Normal View History

// RUN: clang-cc -emit-llvm %s -o %t &&
struct C {
void f();
};
// RUN: grep "define void @_ZN1C1fEv" %t | count 1 &&
void C::f() {
}
// RUN: grep "call void @_ZN1C1fEv" %t | count 1
void f() {
C c;
c.f();
}