diff options
| author | Yi Kong <Yi.Kong@arm.com> | 2014-08-26 12:48:11 +0000 |
|---|---|---|
| committer | Yi Kong <Yi.Kong@arm.com> | 2014-08-26 12:48:11 +0000 |
| commit | 6891746cd87a8d8340c1e2b2dc9411ca67cf9231 (patch) | |
| tree | af6647bee85a7beb822a1d0c4aabf1c13ebf8d7e /clang/test/Sema | |
| parent | 1d268af09441681ea688fe3ae42f535fb9d89575 (diff) | |
| download | bcm5719-llvm-6891746cd87a8d8340c1e2b2dc9411ca67cf9231.tar.gz bcm5719-llvm-6891746cd87a8d8340c1e2b2dc9411ca67cf9231.zip | |
arm_acle: Add mappings for dbg intrinsic
This completes all ACLE hint intrinsics.
llvm-svn: 216453
Diffstat (limited to 'clang/test/Sema')
| -rw-r--r-- | clang/test/Sema/arm_acle.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Sema/arm_acle.c b/clang/test/Sema/arm_acle.c index 2d1d68a8869..ec0d55854ee 100644 --- a/clang/test/Sema/arm_acle.c +++ b/clang/test/Sema/arm_acle.c @@ -37,3 +37,12 @@ int32_t test_usat_const_diag(int32_t t, const int32_t v) { void test_pldx_const_diag(int32_t i) { __pldx(i, 0, 0, 0); // expected-error-re {{argument to {{.*}} must be a constant integer}} } + +/* + * DBG intrinsic + * First argument for DBG intrinsic must be compile-time constant, + * otherwise an error should be raised. + */ +void test_dbg_const_diag(unsigned int t) { + __dbg(t); // expected-error-re {{argument to {{.*}} must be a constant integer}} +} |

