[cfe-commits] r155910 - /cfe/trunk/test/Rewriter/rewrite-modern-extern-c-func-decl.mm

jahanian fjahanian at apple.com
Tue May 1 10:51:51 PDT 2012


On May 1, 2012, at 4:56 AM, NAKAMURA Takumi wrote:

> Bill please pick up r155910 (and r155278 squashed) into release_31.
> They can fix an unexpected failure on mingw.

Only if related modern translation is in release_31.

- Fariborz

> 
> ...Takumi
> 
> 2012/5/1 NAKAMURA Takumi <geek4civic at gmail.com>:
>> Author: chapuni
>> Date: Tue May  1 05:51:55 2012
>> New Revision: 155910
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=155910&view=rev
>> Log:
>> clang/test/Rewriter/rewrite-modern-extern-c-func-decl.mm: Remove XFAIL and add -U__declspec. mingw32 tends to define built-in __declspec.
>> 
>> Modified:
>>    cfe/trunk/test/Rewriter/rewrite-modern-extern-c-func-decl.mm
>> 
>> Modified: cfe/trunk/test/Rewriter/rewrite-modern-extern-c-func-decl.mm
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-modern-extern-c-func-decl.mm?rev=155910&r1=155909&r2=155910&view=diff
>> ==============================================================================
>> --- cfe/trunk/test/Rewriter/rewrite-modern-extern-c-func-decl.mm (original)
>> +++ cfe/trunk/test/Rewriter/rewrite-modern-extern-c-func-decl.mm Tue May  1 05:51:55 2012
>> @@ -1,10 +1,7 @@
>> -// RUN: %clang_cc1 -fms-extensions -rewrite-objc -x objective-c++ -fblocks -o %t-rw.cpp %s
>> -// RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -Wno-attributes -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
>> +// RUN: %clang_cc1 -fms-extensions -U__declspec -rewrite-objc -x objective-c++ -fblocks -o %t-rw.cpp %s
>> +// RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -Wno-attributes -D"Class=void*" -D"id=void*" -D"SEL=void*" -U__declspec -D"__declspec(X)=" %t-rw.cpp
>>  // rdar://11131490
>> 
>> -// XFAIL: mingw
>> -// FIXME: __declspec(X) is predefined on mingw.
>> -
>>  extern "C" __declspec(dllexport) void BreakTheRewriter(void) {
>>         __block int aBlockVariable = 0;
>>         void (^aBlock)(void) = ^ {
>> 
>> 
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list