From 77212133072dc40f070a280af8217032f55a9eb4 Mon Sep 17 00:00:00 2001 From: rdivacky Date: Tue, 15 Dec 2009 18:49:47 +0000 Subject: Update clang to 91430. --- test/CodeGenCXX/inline-functions.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/CodeGenCXX/inline-functions.cpp (limited to 'test/CodeGenCXX/inline-functions.cpp') diff --git a/test/CodeGenCXX/inline-functions.cpp b/test/CodeGenCXX/inline-functions.cpp new file mode 100644 index 0000000..9af4c6e --- /dev/null +++ b/test/CodeGenCXX/inline-functions.cpp @@ -0,0 +1,23 @@ +// 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 struct B { }; + +template<> struct B { + inline void f(); +}; + +// CHECK-NOT: _ZN1BIcE1fEv +void B::f() { } + +// We need a final CHECK line here. + +// CHECK: define void @_Z1fv +void f() { } -- cgit v1.1