xref: /minix3/external/bsd/llvm/dist/clang/test/Index/usrs-cxx0x.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc template<typename ...Types>
2f4a2713aSLionel Sambuc struct tuple { };
3f4a2713aSLionel Sambuc 
4f4a2713aSLionel Sambuc void f(tuple<int, float, double>);
5f4a2713aSLionel Sambuc 
6*0a6a1f1dSLionel Sambuc class TestCls {
7*0a6a1f1dSLionel Sambuc   void meth() &;
8*0a6a1f1dSLionel Sambuc   void meth() &&;
9*0a6a1f1dSLionel Sambuc   void meth(int&&);
10*0a6a1f1dSLionel Sambuc };
11*0a6a1f1dSLionel Sambuc 
12f4a2713aSLionel Sambuc // RUN: c-index-test -test-load-source-usrs all -std=c++11 %s | FileCheck %s
13f4a2713aSLionel Sambuc // CHECK: usrs-cxx0x.cpp c:@ST>1#pT@tuple Extent=[1:1 - 2:17]
14f4a2713aSLionel Sambuc // CHECK: usrs-cxx0x.cpp c:@F@f#$@S@tuple>#p3Ifd# Extent=[4:1 - 4:34]
15*0a6a1f1dSLionel Sambuc 
16*0a6a1f1dSLionel Sambuc // CHECK: usrs-cxx0x.cpp c:@S@TestCls@F@meth#& Extent=[7:3 - 7:16]
17*0a6a1f1dSLionel Sambuc // CHECK: usrs-cxx0x.cpp c:@S@TestCls@F@meth#&& Extent=[8:3 - 8:17]
18*0a6a1f1dSLionel Sambuc // CHECK: usrs-cxx0x.cpp c:@S@TestCls@F@meth#&&I# Extent=[9:3 - 9:19]
19