brintos

brintos / llvm-project-archived public Read only

0
0
Text · 533 B · c5f46d7 Raw
13 lines · plain
1! RUN: %flang_fc1 -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck  %s2 3! Test that complex return type is correctly represented in debug.4complex function fn(a)5    complex, intent(in) :: a6    fn = a7end function8 9! CHECK-DAG: ![[CMPLX:.*]] = !DIBasicType(name: "complex", size: 64, encoding: DW_ATE_complex_float)10! CHECK-DAG: ![[SR_TY:.*]] = !DISubroutineType(cc: DW_CC_normal, types: ![[TYPES:.*]])11! CHECK-DAG: ![[TYPES]] = !{![[CMPLX]], ![[CMPLX]]}12! CHECK-DAG: !DISubprogram(name: "fn"{{.*}}type: ![[SR_TY]]{{.*}})13