brintos

brintos / llvm-project-archived public Read only

0
0
Text · 804 B · c9500ee Raw
18 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin %s -o - | FileCheck %s2// 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 %s4// 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=NORVALUE6 7extern "C" {8extern int printf(const char * format, ...);9}10void 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