From 3fa023249555204d0d625c99428e7b9ab95e177a Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Tue, 28 Oct 2014 22:15:55 +0000 Subject: [PATCH] The dllimport.cpp test was gating some checks on #ifndef MSABI, but MSABI was never defined in the test. It seems we are erroring on code that we should be accepting when compiling for MSVC compatibility. This should make the test less confusing until PR21406 is fixed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220825 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaCXX/dllimport.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/test/SemaCXX/dllimport.cpp b/test/SemaCXX/dllimport.cpp index 1ba25dbbc5..27378256f4 100644 --- a/test/SemaCXX/dllimport.cpp +++ b/test/SemaCXX/dllimport.cpp @@ -684,15 +684,17 @@ template void MemFunTmpl::importedStatic(); template<> __declspec(dllimport) void MemFunTmpl::importedNormal(); template<> __declspec(dllimport) void MemFunTmpl::importedNormal() {} // error on mingw template<> __declspec(dllimport) inline void MemFunTmpl::importedNormal() {} -#ifndef MSABI -// expected-error@-3{{dllimport cannot be applied to non-inline function definition}} +#if 1 +// FIXME: This should not be an error when targeting MSVC. (PR21406) +// expected-error@-4{{dllimport cannot be applied to non-inline function definition}} #endif template<> __declspec(dllimport) void MemFunTmpl::importedStatic(); template<> __declspec(dllimport) void MemFunTmpl::importedStatic() {} // error on mingw template<> __declspec(dllimport) inline void MemFunTmpl::importedStatic() {} -#ifndef MSABI -// expected-error@-3{{dllimport cannot be applied to non-inline function definition}} +#if 1 +// FIXME: This should not be an error when targeting MSVC. (PR21406) +// expected-error@-4{{dllimport cannot be applied to non-inline function definition}} #endif // Not importing specialization of an imported member function template without @@ -715,15 +717,17 @@ template __declspec(dllimport) void MemFunTmpl::staticDef template<> __declspec(dllimport) void MemFunTmpl::normalDef(); template<> __declspec(dllimport) void MemFunTmpl::normalDef() {} // error on mingw template<> __declspec(dllimport) inline void MemFunTmpl::normalDef() {} -#ifndef MSABI -// expected-error@-3{{dllimport cannot be applied to non-inline function definition}} +#if 1 +// FIXME: This should not be an error when targeting MSVC. (PR21406) +// expected-error@-4{{dllimport cannot be applied to non-inline function definition}} #endif template<> __declspec(dllimport) void MemFunTmpl::staticDef(); template<> __declspec(dllimport) void MemFunTmpl::staticDef() {} // error on mingw template<> __declspec(dllimport) inline void MemFunTmpl::staticDef() {} -#ifndef MSABI -// expected-error@-3{{dllimport cannot be applied to non-inline function definition}} +#if 1 +// FIXME: This should not be an error when targeting MSVC. (PR21406) +// expected-error@-4{{dllimport cannot be applied to non-inline function definition}} #endif -- 2.40.0