[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-rvalue-ref.cpp
blobc9500ee59b7fde5630f18f226bfcbc74145d6c0f
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
7 extern "C" {
8 extern int printf(const char * format, ...);
10 void foo (int &&i)
12 printf("%d\n", i);
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)