blob: 7c71c96738911d006a258bc29706fdadadee979a [file] [log] [blame]
Chris Lattner9dc8f192009-04-05 00:59:53 +00001// RUN: clang-cc -fsyntax-only -verify %s -triple x86_64-apple-darwin9
2
3// rdar://6726818
4void f1() {
5 const __builtin_va_list args2;
Chris Lattner3f419762009-04-06 17:07:34 +00006 (void)__builtin_va_arg(args2, int); // expected-error {{first argument to 'va_arg' is of type '__builtin_va_list const' and not 'va_list'}}
Chris Lattner9dc8f192009-04-05 00:59:53 +00007}
8