diff options
-rw-r--r-- | testsuite/tests/llvm/should_compile/T7571.cmm | 11 | ||||
-rw-r--r-- | testsuite/tests/llvm/should_compile/all.T | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/testsuite/tests/llvm/should_compile/T7571.cmm b/testsuite/tests/llvm/should_compile/T7571.cmm new file mode 100644 index 0000000000..d4e89d5ad6 --- /dev/null +++ b/testsuite/tests/llvm/should_compile/T7571.cmm @@ -0,0 +1,11 @@ +#include "Cmm.h" + +testLiteralBranch (W_ dst, W_ src) +{ + if (1) { + prim %memcpy(dst, src, 1024, 4); + } else { + prim %memcpy(dst, src, 512, 8); + } + return (); +} diff --git a/testsuite/tests/llvm/should_compile/all.T b/testsuite/tests/llvm/should_compile/all.T index 29e5ae1012..d0ce873a39 100644 --- a/testsuite/tests/llvm/should_compile/all.T +++ b/testsuite/tests/llvm/should_compile/all.T @@ -10,4 +10,4 @@ test('5054_2', reqlib('hmatrix'), compile, ['-package hmatrix']) test('5486', normal, compile, ['']) test('5681', normal, compile, ['']) test('6158', [reqlib('vector'), reqlib('primitive')], compile, ['-package vector -package primitive']) - +test('T7571', cmm_src, compile, ['']) |