Tim Northover | 8ec8c4b | 2013-05-04 07:15:13 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -fsyntax-only -verify %s |
| 2 | |
| 3 | void test_clear_cache_chars(char *start, char *end) { |
| 4 | __clear_cache(start, end); |
| 5 | } |
| 6 | |
| 7 | void test_clear_cache_voids(void *start, void *end) { |
| 8 | __clear_cache(start, end); |
| 9 | } |
| 10 | |
| 11 | void 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 | } |