================
@@ -0,0 +1,98 @@
+// RUN: %clang_cc1 -triple x86_64-win32 -fms-extensions -fsyntax-only -verify 
%s
+// RUN: %clang_cc1 -triple x86_64-mingw                 -fsyntax-only -verify 
%s
+// RUN: %clang_cc1 -triple x86_64-cygwin                -fsyntax-only -verify 
%s
+
+// Test that memberwise dllexport and dllimport are warned if the
+// exclude_from_explicit_instantiation attribute is attached.
+
+#define EXCLUDE_ATTR __attribute__((exclude_from_explicit_instantiation))
+
+template <class T>
+struct C {
+  EXCLUDE_ATTR __declspec(dllexport) void fn_excluded_exported();
+// expected-warning@-1{{'dllexport' attribute ignored; 
'exclude_from_explicit_instantiation' takes precedence}}
----------------
kikairoya wrote:

fixed.

https://github.com/llvm/llvm-project/pull/183515
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to