]> granicus.if.org Git - clang/commitdiff
clang/test/SemaCXX/err_init_conversion_failed.cpp: Tweak for i686-msvc.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 20 May 2014 15:44:42 +0000 (15:44 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 20 May 2014 15:44:42 +0000 (15:44 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209212 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/err_init_conversion_failed.cpp

index 14d49547438e941260ee2d606b7faf1d12abcad4..e31f215b4528cb136b0cb7a0efefb9dfb70a91d7 100644 (file)
@@ -56,6 +56,6 @@ template <class P> struct S2 {
 
 void test_15() {
   S2<S> X = {&S::foo};
-  // expected-error@-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@-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')}}
 }
 }