diff options
Diffstat (limited to 'test/Sema/builtins-arm.c')
-rw-r--r-- | test/Sema/builtins-arm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/builtins-arm.c b/test/Sema/builtins-arm.c index 3ac1da0aa93d..6c367d35a5f5 100644 --- a/test/Sema/builtins-arm.c +++ b/test/Sema/builtins-arm.c @@ -31,4 +31,10 @@ void test2() { *ptr = '0'; // expected-error {{incomplete type 'void' is not assignable}} } +void test3() { + __builtin_arm_dsb(16); // expected-error {{argument should be a value from 0 to 15}} + __builtin_arm_dmb(17); // expected-error {{argument should be a value from 0 to 15}} + __builtin_arm_isb(18); // expected-error {{argument should be a value from 0 to 15}} +} + #endif |