summaryrefslogtreecommitdiff
path: root/clang/test/Sema/varargs-x86-64.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/varargs-x86-64.c')
-rw-r--r--clang/test/Sema/varargs-x86-64.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/varargs-x86-64.c b/clang/test/Sema/varargs-x86-64.c
new file mode 100644
index 0000000..2fe9b10
--- /dev/null
+++ b/clang/test/Sema/varargs-x86-64.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-apple-darwin9
+
+// rdar://6726818
+void f1() {
+ const __builtin_va_list args2;
+ (void)__builtin_va_arg(args2, int); // expected-error {{first argument to 'va_arg' is of type 'const __builtin_va_list' and not 'va_list'}}
+}
+