1 // RUN: %clang_cc1 -std=c++11 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin %s -o - | FileCheck %s 2 // RUN: %clang_cc1 -std=c++11 -dwarf-version=4 -gstrict-dwarf -emit-llvm -debug-info-kind=limited \ 3 // RUN: -triple x86_64-apple-darwin %s -o - | FileCheck %s 4 // RUN: %clang_cc1 -std=c++11 -dwarf-version=3 -gstrict-dwarf -emit-llvm -debug-info-kind=limited \ 5 // RUN: -triple x86_64-apple-darwin %s -o - | FileCheck %s --check-prefix=NORVALUE 6 7 extern "C" { 8 extern int printf(const char * format, ...); 9 } 10 void foo (int &&i) 11 { 12 printf("%d\n", i); 13 } 14 15 // CHECK: !DIDerivedType(tag: DW_TAG_rvalue_reference_type, baseType: ![[INT:[0-9]+]], size: 64) 16 // CHECK: ![[INT]] = !DIBasicType(name: "int" 17 // NORVALUE: !DIDerivedType(tag: DW_TAG_reference_type, baseType: ![[INT:[0-9]+]], size: 64) 18