[clang] [Clang] Apply exclude_from_explicit_instantiation to dllimport/dllexport (PR #168171)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 16 02:27:28 PST 2026


================
@@ -0,0 +1,181 @@
+// RUN: %clang_cc1 -triple x86_64-win32 -fms-extensions -emit-llvm -o - %s | \
+// RUN:     FileCheck %s --check-prefixes=MSC --implicit-check-not=to_be_ --implicit-check-not=dllexport
+// RUN: %clang_cc1 -triple x86_64-mingw                 -emit-llvm -o - %s | \
+// RUN:     FileCheck %s --check-prefixes=GNU --implicit-check-not=to_be_ --implicit-check-not=dllexport
+// RUN: %clang_cc1 -triple x86_64-cygwin                -emit-llvm -o - %s | \
+// RUN:     FileCheck %s --check-prefixes=GNU --implicit-check-not=to_be_ --implicit-check-not=dllexport
----------------
zmodem wrote:

But if the behavior is the same (same stuff gets exported or not), maybe it would be enough to check for one of the targets?

I'm just trying to think of ways to simplify the test.

https://github.com/llvm/llvm-project/pull/168171


More information about the cfe-commits mailing list