mangle-subst.cpp revision 7696737d41321cf20aef1aab1454872f2ff7a1c8
1// RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 &&
2
3struct X {};
4
5// RUN: grep "define void @_Z1f1XS_" %t | count 1 &&
6void f(X, X) { }
7
8// RUN: grep "define void @_Z1fR1XS0_" %t | count 1 &&
9void f(X&, X&) { }
10
11// RUN: grep "define void @_Z1fRK1XS1_" %t | count 1 &&
12void f(const X&, const X&) { }
13
14typedef void T();
15struct S {};
16
17// RUN: grep "define void @_Z1fPFvvEM1SFvvE" %t | count 1 &&
18void f(T*, T (S::*)) {}
19
20// RUN: true
21