OSDN Git Service

add source in comment
authorAdrian Prantl <aprantl@apple.com>
Thu, 19 Dec 2013 01:41:16 +0000 (01:41 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 19 Dec 2013 01:41:16 +0000 (01:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197642 91177308-0d34-0410-b5e6-96231b3b80d8

test/DebugInfo/debug-info-qualifiers.ll

index 625afb1..590a691 100644 (file)
@@ -1,6 +1,18 @@
 ; Test (r)value qualifiers on C++11 non-static member functions.
 ; Generated from tools/clang/test/CodeGenCXX/debug-info-qualifiers.cpp
 ;
+; class A {
+; public:
+;   void l() const &;
+;   void r() const &&;
+; };
+;
+; void g() {
+;   A a;
+;   auto pl = &A::l;
+;   auto pr = &A::r;
+; }
+;
 ; RUN: llc -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s
 ; CHECK: DW_TAG_subroutine_type     DW_CHILDREN_yes
 ; CHECK-NEXT: DW_AT_reference  DW_FORM_flag_present