Ticket #7571: 0001-Test-for-Trac-7571.patch

File 0001-Test-for-Trac-7571.patch, 1.3 KB (added by thoughtpolice, 15 months ago)

Patch for testsuite.

  • new file tests/llvm/should_compile/T7571.cmm

    From 62067fcf7dd6b8da9fcc76677a1c1cb59e9eff1d Mon Sep 17 00:00:00 2001
    From: Austin Seipp <mad.one@gmail.com>
    Date: Sun, 13 Jan 2013 03:51:36 -0600
    Subject: [PATCH] Test for Trac #7571.
    
    Signed-off-by: Austin Seipp <mad.one@gmail.com>
    ---
     tests/llvm/should_compile/T7571.cmm | 11 +++++++++++
     tests/llvm/should_compile/all.T     |  2 +-
     2 files changed, 12 insertions(+), 1 deletion(-)
     create mode 100644 tests/llvm/should_compile/T7571.cmm
    
    diff --git a/tests/llvm/should_compile/T7571.cmm b/tests/llvm/should_compile/T7571.cmm
    new file mode 100644
    index 0000000..d4e89d5
    - +  
     1#include "Cmm.h" 
     2 
     3testLiteralBranch (W_ dst, W_ src) 
     4{ 
     5  if (1) { 
     6    prim %memcpy(dst, src, 1024, 4); 
     7  } else { 
     8    prim %memcpy(dst, src, 512, 8); 
     9  } 
     10  return (); 
     11} 
  • tests/llvm/should_compile/all.T

    diff --git a/tests/llvm/should_compile/all.T b/tests/llvm/should_compile/all.T
    index 29e5ae1..d0ce873 100644
    a b test('5054_2', reqlib('hmatrix'), compile, ['-package hmatrix']) 
    1010test('5486', normal, compile, ['']) 
    1111test('5681', normal, compile, ['']) 
    1212test('6158', [reqlib('vector'), reqlib('primitive')], compile, ['-package vector -package primitive']) 
    13  
     13test('T7571', cmm_src, compile, [''])