]> granicus.if.org Git - clang/commitdiff
clang/test/CXX/drs/dr5xx.cpp: Suppress dr547 for targeting MSVC x86 for now, due...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 31 Aug 2014 12:21:50 +0000 (12:21 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 31 Aug 2014 12:21:50 +0000 (12:21 +0000)
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<void () __attribute__((thiscall)) const>'
    File clang/test/CXX/drs/dr5xx.cpp Line 518: implicit instantiation of undefined template 'dr547::X<void () __attribute__((thiscall)) const>'
    File clang/test/CXX/drs/dr5xx.cpp Line 518: implicit instantiation of undefined template 'dr547::X<void () __attribute__((thiscall)) const>'
  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<void () __attribute__((thiscall)) const, dr547::S>' 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

test/CXX/drs/dr5xx.cpp

index 7b0c7e668d305169480ac835f1ae67054fd62442..a349006b958eb0f0e6e4a19e8f8c4bf2d7beb122 100644 (file)
@@ -511,6 +511,7 @@ namespace dr546 { // dr546: yes
   template<typename T> void A<T>::f() { T::error; }
 }
 
+#if !defined(_M_IX86) // This is incompatible to attribute(thiscall).
 namespace dr547 { // d547: yes
   template<typename T> struct X;
   template<typename T> struct X<T() const> {};
@@ -519,6 +520,7 @@ namespace dr547 { // d547: yes
   struct S { void f() const; };
   X<void() const> x = f(&S::f);
 }
+#endif
 
 namespace dr548 { // dr548: dup 482
   template<typename T> struct S {};