r209212 - clang/test/SemaCXX/err_init_conversion_failed.cpp: Tweak for i686-msvc.

Richard Trieu rtrieu at google.com
Tue May 20 16:24:40 PDT 2014


Thanks for fixing this.


On Tue, May 20, 2014 at 8:44 AM, NAKAMURA Takumi <geek4civic at gmail.com>wrote:

> Author: chapuni
> Date: Tue May 20 10:44:42 2014
> New Revision: 209212
>
> URL: http://llvm.org/viewvc/llvm-project?rev=209212&view=rev
> Log:
> clang/test/SemaCXX/err_init_conversion_failed.cpp: Tweak for i686-msvc.
>
> For targeting i686-msvc, declarations are seen as thiscall like;
>
>   void (template_test::S::*)(const int &) __attribute__((thiscall))
>   void (template_test::S::*)(int) __attribute__((thiscall))
>
> It didn't affect x86_64-msvc.
>
> Modified:
>     cfe/trunk/test/SemaCXX/err_init_conversion_failed.cpp
>
> Modified: cfe/trunk/test/SemaCXX/err_init_conversion_failed.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/err_init_conversion_failed.cpp?rev=209212&r1=209211&r2=209212&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/SemaCXX/err_init_conversion_failed.cpp (original)
> +++ cfe/trunk/test/SemaCXX/err_init_conversion_failed.cpp Tue May 20
> 10:44:42 2014
> @@ -56,6 +56,6 @@ template <class P> struct S2 {
>
>  void test_15() {
>    S2<S> X = {&S::foo};
> -  // expected-error at -1{{cannot initialize a member subobject of type
> 'void (template_test::S::*)(const int &)' with an rvalue of type 'void
> (template_test::S::*)(int)': type mismatch at 1st parameter ('const int &'
> vs 'int')}}
> +  // expected-error-re at -1{{cannot initialize a member subobject of type
> 'void (template_test::S::*)(const int &){{(
> __attribute__\(\(thiscall\)\))?}}' with an rvalue of type 'void
> (template_test::S::*)(int){{( __attribute__\(\(thiscall\)\))?}}': type
> mismatch at 1st parameter ('const int &' vs 'int')}}
>  }
>  }
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140520/f08efd62/attachment.html>


More information about the cfe-commits mailing list