blob: 03e03343eb948ed6466545f9ee43578bb27daf92 [file] [log] [blame]
Tim Northover8ec8c4b2013-05-04 07:15:13 +00001// 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}