blob: 63a523a9decf7d0a32d47dd9a98b7a425a61a122 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
Anders Carlsson48eda2c2009-12-04 22:35:50 +00002// CHECK: ; ModuleID
3
4struct A {
5 inline void f();
6};
7
8// CHECK-NOT: define void @_ZN1A1fEv
9void A::f() { }
10
11template<typename> struct B { };
12
13template<> struct B<char> {
14 inline void f();
15};
16
17// CHECK-NOT: _ZN1BIcE1fEv
18void B<char>::f() { }
19
20// We need a final CHECK line here.
21
22// CHECK: define void @_Z1fv
23void f() { }
Douglas Gregor8f150942010-12-09 16:59:22 +000024
25// <rdar://problem/8740363>
26inline void f1(int);
27
28// CHECK: define linkonce_odr void @_Z2f1i
29void f1(int) { }
30
31void test_f1() { f1(17); }