summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/varargs.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/varargs.c')
-rw-r--r--clang/test/CodeGen/varargs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/varargs.c b/clang/test/CodeGen/varargs.c
new file mode 100644
index 0000000..b3dba24
--- /dev/null
+++ b/clang/test/CodeGen/varargs.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -emit-llvm -o - %s
+
+
+// PR6433 - Don't crash on va_arg(typedef).
+typedef double gdouble;
+void focus_changed_cb () {
+ __builtin_va_list pa;
+ double mfloat;
+ mfloat = __builtin_va_arg((pa), gdouble);
+}
+