builtins-aarch64.c revision ff920eec4d449bee560d8d99636ad0eb50cd9d8d
1// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -fsyntax-only -verify %s 2 3void test_clear_cache_chars(char *start, char *end) { 4 __clear_cache(start, end); 5} 6 7void test_clear_cache_voids(void *start, void *end) { 8 __clear_cache(start, end); 9} 10 11void test_clear_cache_no_args() { 12 // AArch32 version of this is variadic (at least syntactically). 13 // However, on AArch64 GCC does not permit this call and the 14 // implementation I've seen would go disastrously wrong. 15 __clear_cache(); // expected-error {{too few arguments to function call}} 16} 17