diff options
Diffstat (limited to 'clang/test/Sema/builtins-arm.c')
| -rw-r--r-- | clang/test/Sema/builtins-arm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/builtins-arm.c b/clang/test/Sema/builtins-arm.c index 6c367d35a5f..cc4af7d11df 100644 --- a/clang/test/Sema/builtins-arm.c +++ b/clang/test/Sema/builtins-arm.c @@ -37,4 +37,9 @@ void test3() { __builtin_arm_isb(18); // expected-error {{argument should be a value from 0 to 15}} } +void test4() { + __builtin_arm_prefetch(0, 2, 0); // expected-error {{argument should be a value from 0 to 1}} + __builtin_arm_prefetch(0, 0, 2); // expected-error {{argument should be a value from 0 to 1}} +} + #endif |

