Anders Carlsson | 7696737 | 2009-09-17 00:43:46 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 && |
| 2 | |
| 3 | struct X {}; |
| 4 | |
| 5 | // RUN: grep "define void @_Z1f1XS_" %t | count 1 && |
| 6 | void f(X, X) { } |
| 7 | |
| 8 | // RUN: grep "define void @_Z1fR1XS0_" %t | count 1 && |
| 9 | void f(X&, X&) { } |
| 10 | |
| 11 | // RUN: grep "define void @_Z1fRK1XS1_" %t | count 1 && |
| 12 | void f(const X&, const X&) { } |
| 13 | |
| 14 | typedef void T(); |
| 15 | struct S {}; |
| 16 | |
| 17 | // RUN: grep "define void @_Z1fPFvvEM1SFvvE" %t | count 1 && |
| 18 | void f(T*, T (S::*)) {} |
| 19 | |
| 20 | // RUN: true |