diff options
Diffstat (limited to 'test/Index/print-type-cxx11.cpp')
-rw-r--r-- | test/Index/print-type-cxx11.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Index/print-type-cxx11.cpp b/test/Index/print-type-cxx11.cpp new file mode 100644 index 0000000..0ad5473 --- /dev/null +++ b/test/Index/print-type-cxx11.cpp @@ -0,0 +1,8 @@ +struct RefQualifierTest { + void f() & {}; + void f() && {}; +}; + +// RUN: c-index-test -test-print-type -std=c++11 %s | FileCheck %s +// CHECK: CXXMethod=f:2:8 (Definition) [type=void () &] [typekind=FunctionProto] lvalue-ref-qualifier [resulttype=void] [resulttypekind=Void] [isPOD=0] +// CHECK: CXXMethod=f:3:8 (Definition) [type=void () &&] [typekind=FunctionProto] rvalue-ref-qualifier [resulttype=void] [resulttypekind=Void] [isPOD=0] |