blob: f2bdc9dea2b37f4cce456ce82a4c3aa68575a7b3 [file] [log] [blame]
Tim Northovera2ee4332014-03-29 15:09:45 +00001// RUN: %clang_cc1 -triple arm64-apple-ios -fsyntax-only -verify %s
2// RUN: %clang_cc1 -triple arm64-apple-ios -DTEST1 -fsyntax-only -verify %s
3
4#ifdef TEST1
5void __clear_cache(void *start, void *end);
6#endif
7
8void test_clear_cache_chars(char *start, char *end) {
9 __clear_cache(start, end);
10}
11
12void test_clear_cache_voids(void *start, void *end) {
13 __clear_cache(start, end);
14}
15
16void test_clear_cache_no_args() {
17 __clear_cache(); // expected-error {{too few arguments to function call}}
18}