From: NAKAMURA Takumi Date: Sun, 31 Aug 2014 12:21:50 +0000 (+0000) Subject: clang/test/CXX/drs/dr5xx.cpp: Suppress dr547 for targeting MSVC x86 for now, due... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3532641e220d042c9e66cf6aae58188d4dbb8a54;p=clang clang/test/CXX/drs/dr5xx.cpp: Suppress dr547 for targeting MSVC x86 for now, due to incompatibility of attribute(thiscall). With targeting i686-win32, error: 'error' diagnostics seen but not expected: File clang/test/CXX/drs/dr5xx.cpp Line 521: implicit instantiation of undefined template 'dr547::X' File clang/test/CXX/drs/dr5xx.cpp Line 518: implicit instantiation of undefined template 'dr547::X' File clang/test/CXX/drs/dr5xx.cpp Line 518: implicit instantiation of undefined template 'dr547::X' error: 'note' diagnostics seen but not expected: File clang/test/CXX/drs/dr5xx.cpp Line 516: template is declared here File clang/test/CXX/drs/dr5xx.cpp Line 521: in instantiation of function template specialization 'dr547::f' requested here File clang/test/CXX/drs/dr5xx.cpp Line 516: template is declared here File clang/test/CXX/drs/dr5xx.cpp Line 516: template is declared here 7 errors generated. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216841 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/drs/dr5xx.cpp b/test/CXX/drs/dr5xx.cpp index 7b0c7e668d..a349006b95 100644 --- a/test/CXX/drs/dr5xx.cpp +++ b/test/CXX/drs/dr5xx.cpp @@ -511,6 +511,7 @@ namespace dr546 { // dr546: yes template void A::f() { T::error; } } +#if !defined(_M_IX86) // This is incompatible to attribute(thiscall). namespace dr547 { // d547: yes template struct X; template struct X {}; @@ -519,6 +520,7 @@ namespace dr547 { // d547: yes struct S { void f() const; }; X x = f(&S::f); } +#endif namespace dr548 { // dr548: dup 482 template struct S {};