llvm-project/clang/test/CodeGen/debug-info-args.c
Eric Christopher 4b4beb2fe7 Fix PR11073 by adding the argument type information to the decl we construct
for the function type. Update a testcase accordingly.

Patch initially by Anders Waldenborg!

llvm-svn: 142700
2011-10-21 23:30:10 +00:00

10 lines
300 B
C

// RUN: %clang_cc1 -triple x86_64-unk-unk -o - -emit-llvm -g %s | FileCheck %s
int somefunc(char *x, int y, double z) {
// CHECK: {{.*metadata !8, i32 0, i32 0}.*DW_TAG_subroutine_type}}
// CHECK: {{!8 = .*metadata ![^,]*, metadata ![^,]*, metadata ![^,]*, metadata ![^,]*}}
return y;
}