r209212 - clang/test/SemaCXX/err_init_conversion_failed.cpp: Tweak for i686-msvc.
NAKAMURA Takumi
geek4civic at gmail.com
Tue May 20 08:44:43 PDT 2014
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')}}
}
}
More information about the cfe-commits
mailing list