<div>> --- a/test/SemaCXX/attr-selectany.cpp</div><div>> +++ b/test/SemaCXX/attr-selectany.cpp</div><div>> @@ -1,4 +1,4 @@</div><div>> -// RUN: %clang_cc1 -fms-extensions -fsyntax-only -verify -std=c++11 %s</div>
<div>> +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s</div><div>>  // MSVC produces similar diagnostics.</div><div>></div><div>>  __declspec(selectany) void foo() { } // expected-error{{'selectany' can only be applied to data items with external linkage}}</div>
<div>></div><div><br></div><div>Your RUN line will fail for non-mingw hosts.  Also, __declspec(selectany) still needs to be tested for -fms-extensions.  Something like the following would be more appropriate:</div><div>
<br></div><div>// RUN: %clang_cc1 -fms-extensions -fsyntax-only -verify -std=c++11 %s<br></div><div>// RUN: %clang_cc1 -triple i386-pc-mingw32 -fsyntax-only -verify -std=c++11 %s<br></div><br><div>On Tue Mar 25 2014 at 4:28:36 PM, Ivan Garramona <<a href="mailto:heavenandhell171@gmail.com">heavenandhell171@gmail.com</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Trying to build wxWidgets with Clang i've found out that it only support selectany under ms-extensions. This patch enable selectany on Mingw as well.<br>
</div>
______________________________<u></u>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-commits</a><br>
</blockquote>