Anders Carlsson | 2b77ba8 | 2009-04-04 20:47:02 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm %s -o %t && |
2 | struct C { | ||||
3 | void f(); | ||||
4 | }; | ||||
5 | |||||
6 | // RUN: grep "define void @_ZN1C1fEv" %t | count 1 && | ||||
7 | void C::f() { | ||||
8 | } | ||||
9 | |||||
10 | // RUN: grep "call void @_ZN1C1fEv" %t | count 1 | ||||
11 | void f() { | ||||
12 | C c; | ||||
13 | |||||
14 | c.f(); | ||||
15 | } |