[llvm-commits] test/C++Frontend/2008-02-13-sret.cpp

Dale Johannesen dalej at apple.com
Thu Feb 14 10:02:26 PST 2008


On Feb 14, 2008, at 6:52 AM, Duncan Sands wrote:

> Hi Dale, this test is failing for me (x86-32 linux):
> there is nothing called retval.
>
> // RUN: %llvmgxx -S -O0 -emit-llvm %s -o - | grep retval | grep S242  
> | grep {i32 1} | count 2

OK, that's because Linux returns S242 by the sret mechanism instead of  
as an i64.  What's I'd like to do to preserve the sense of the test is  
grep for retval | memtmp, but I'm not sure how to do that portably.   
Does this work for you?

// RUN: %llvmgxx -S -O0 -emit-llvm %s -o - | grep {retval\\|memtmp} |  
grep S242 | grep {i32 1} | count 2




More information about the llvm-commits mailing list