summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/builtins-arm.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-05-14 18:06:10 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-05-14 18:06:10 +0000
commit0633865e5b6a0911f70454915d3bab5f07c7efa6 (patch)
tree4e1dc180768786348802fc7f01b492c45de20ffb /clang/test/Sema/builtins-arm.c
parent0344f495f9fecb1ed3887d00b62440642398dbc8 (diff)
downloadbcm5719-llvm-0633865e5b6a0911f70454915d3bab5f07c7efa6.tar.gz
bcm5719-llvm-0633865e5b6a0911f70454915d3bab5f07c7efa6.zip
Really fix the declaration of __clear_cache.
When I tested gcc's behaviour before, I forgot the extern "C", so it would warn when the types *did* match. So in the end * __clear_cache takes two void pointers. * aarch64 was correct before. * libgcc's manual is wrong. * this patch fixes arm. llvm-svn: 181810
Diffstat (limited to 'clang/test/Sema/builtins-arm.c')
-rw-r--r--clang/test/Sema/builtins-arm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Sema/builtins-arm.c b/clang/test/Sema/builtins-arm.c
index b516040f64e..3ac1da0aa93 100644
--- a/clang/test/Sema/builtins-arm.c
+++ b/clang/test/Sema/builtins-arm.c
@@ -2,14 +2,14 @@
// RUN: %clang_cc1 -triple armv7 -target-abi apcs-gnu \
// RUN: -fsyntax-only -verify %s
-void f(char *a, char *b) {
- __clear_cache(); // expected-error {{too few arguments to function call, expected 2, have 0}} // expected-note {{'__clear_cache' is a builtin with type 'void (char *, char *)}}
+void f(void *a, void *b) {
+ __clear_cache(); // expected-error {{too few arguments to function call, expected 2, have 0}} // expected-note {{'__clear_cache' is a builtin with type 'void (void *, void *)}}
__clear_cache(a); // expected-error {{too few arguments to function call, expected 2, have 1}}
__clear_cache(a, b);
}
-void __clear_cache(void*, void*); // expected-error {{conflicting types for '__clear_cache'}}
-void __clear_cache(char*, char*);
+void __clear_cache(char*, char*); // expected-error {{conflicting types for '__clear_cache'}}
+void __clear_cache(void*, void*);
#if defined(__ARM_PCS) || defined(__ARM_EABI__)
// va_list on ARM AAPCS is struct { void* __ap }.
OpenPOWER on IntegriCloud