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

class A { inline void f(); } void A::f() { } This is not the most ideal solution, since it doesn't work 100% with regular functions (as my FIXME comment states). llvm-svn: 90607
24 lines
408 B
C++
24 lines
408 B
C++
// RUN: clang-cc %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
|
|
// CHECK: ; ModuleID
|
|
|
|
struct A {
|
|
inline void f();
|
|
};
|
|
|
|
// CHECK-NOT: define void @_ZN1A1fEv
|
|
void A::f() { }
|
|
|
|
template<typename> struct B { };
|
|
|
|
template<> struct B<char> {
|
|
inline void f();
|
|
};
|
|
|
|
// CHECK-NOT: _ZN1BIcE1fEv
|
|
void B<char>::f() { }
|
|
|
|
// We need a final CHECK line here.
|
|
|
|
// CHECK: define void @_Z1fv
|
|
void f() { }
|