summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-args.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-10-21 23:30:10 +0000
committerEric Christopher <echristo@apple.com>2011-10-21 23:30:10 +0000
commit4b4beb2fe70f7da8bb9fe7b81ecbe6a2c9c6e612 (patch)
tree3ba5871eec38ac85fc142826be895b4fb7d96910 /clang/test/CodeGen/debug-info-args.c
parent0a92de06f013da0dccdd10c40f44433c16f2725f (diff)
downloadbcm5719-llvm-4b4beb2fe70f7da8bb9fe7b81ecbe6a2c9c6e612.tar.gz
bcm5719-llvm-4b4beb2fe70f7da8bb9fe7b81ecbe6a2c9c6e612.zip
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
Diffstat (limited to 'clang/test/CodeGen/debug-info-args.c')
-rw-r--r--clang/test/CodeGen/debug-info-args.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-args.c b/clang/test/CodeGen/debug-info-args.c
new file mode 100644
index 00000000000..1d4ea10f17d
--- /dev/null
+++ b/clang/test/CodeGen/debug-info-args.c
@@ -0,0 +1,9 @@
+// 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;
+}
OpenPOWER on IntegriCloud