brintos

brintos / llvm-project-archived public Read only

0
0
Text · 855 B · ef32985 Raw
24 lines · c
1// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -fsyntax-only -verify %s2// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -DTEST1 -fsyntax-only -verify %s3// RUN: %clang_cc1 -triple arm64-none-linux-gnu -fsyntax-only -verify %s4// RUN: %clang_cc1 -triple arm64-none-linux-gnu -DTEST1 -fsyntax-only -verify %s5 6#ifdef TEST17void __clear_cache(void *start, void *end);8#endif9 10void test_clear_cache_chars(char *start, char *end) {11  __clear_cache(start, end);12}13 14void test_clear_cache_voids(void *start, void *end) {15  __clear_cache(start, end);16}17 18void test_clear_cache_no_args(void) {19  // AArch32 version of this is variadic (at least syntactically).20  // However, on AArch64 GCC does not permit this call and the21  // implementation I've seen would go disastrously wrong.22  __clear_cache(); // expected-error {{too few arguments to function call}}23}24