[llvm-commits] [llvm-gcc-4.2] r110043 - /llvm-gcc-4.2/trunk/gcc/objc/objc-act.c

Eric Christopher echristo at apple.com
Mon Aug 2 15:19:42 PDT 2010


>> 
>> 
>> // dg-compile
>> 
>> #if __clang__
>> 
>> test
>> 
>> #else
>> 
>> same test but checks for { dg-error ... }
> 
> Ah, "dg-error" is a clue to what you're thinking...

<insert error check here>

> 
>> #endif
>> 
>> is what I was meaning.
>> 
>> -eric
> 
> Alas, this test is going into llvmCore/test/FrontendObjC++/..., so it will use FileCheck, and I don't think FileCheck respects #if directives.

Yeah, I'm not sure.  It wouldn't work anyways since this will compile without error thus making the "not %llvmgcc" fail.

Sounds like some FileCheck hacking is in the future.  Might be a useful addition.

-eric



More information about the llvm-commits mailing list