2010-07-16 08:31:23 +08:00
|
|
|
// RUN: %clang_cc1 -triple armv7 -fsyntax-only -verify -DTEST0 %s
|
|
|
|
// RUN: %clang_cc1 -triple armv7 -fsyntax-only -verify -DTEST1 %s
|
|
|
|
|
|
|
|
#ifdef TEST0
|
|
|
|
void __clear_cache(char*, char*);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef TEST1
|
|
|
|
void __clear_cache(void*, void*);
|
|
|
|
#endif
|
|
|
|
|
2011-05-09 10:19:37 +08:00
|
|
|
// va_list on ARM is void*.
|
|
|
|
void test2() {
|
|
|
|
__builtin_va_list ptr = "x";
|
|
|
|
*ptr = '0'; // expected-error {{incomplete type 'void' is not assignable}}
|
|
|
|
}
|