Anders Carlsson | 7a039eb | 2009-08-15 22:30:50 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 && |
2 | struct A { | ||||
3 | A(); | ||||
4 | ~A(); | ||||
5 | void f(); | ||||
6 | }; | ||||
7 | |||||
8 | void f() { | ||||
9 | // RUN: grep "call void @_ZN1AC1Ev" %t | count 2 && | ||||
10 | // RUN: grep "call void @_ZN1AD1Ev" %t | count 2 | ||||
11 | A(); | ||||
12 | A().f(); | ||||
13 | } |