summaryrefslogtreecommitdiffstats
path: root/test/Sema/varargs-x86-64.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/varargs-x86-64.c')
-rw-r--r--test/Sema/varargs-x86-64.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/varargs-x86-64.c b/test/Sema/varargs-x86-64.c
new file mode 100644
index 0000000..7c71c96
--- /dev/null
+++ b/test/Sema/varargs-x86-64.c
@@ -0,0 +1,8 @@
+// RUN: clang-cc -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 '__builtin_va_list const' and not 'va_list'}}
+}
+
OpenPOWER on IntegriCloud