https://github.com/bd1976bris created 
https://github.com/llvm/llvm-project/pull/148818

Windows Itanium and PS5 are both Itanium C++ ABI variants which have the goal 
of semantic compatibility with Microsoft C++ code that uses dllimport/export.

This patch adds Windows Itanium and PS5 triple testing to 
clang/test/Sema/dllexport.c. We have this testing in our downstream toolchain - 
for some reason it was not added upstream when the work for supporting 
dllimport/export was done.

>From aadd2cebb4f0a955d1f1004036b65bfa1d1c0985 Mon Sep 17 00:00:00 2001
From: Dunbobbin <ben.dunbob...@sony.com>
Date: Tue, 15 Jul 2025 10:49:28 +0100
Subject: [PATCH] [Clang][Test] Add PS5 and WI cases to
 clang/test/Sema/dllexport.c

Windows Itanium and PS5 are both Itanium C++ ABI variants which
have the goal of semantic compatibility with Microsoft C++
code that uses dllimport/export.

This patch adds Windows Itanium and PS5 triple testing to
clang/test/Sema/dllexport.c. We have this testing in our
downstream toolchain - for some reason it was not added upstream
when the work for supporting dllimport/export was done.
---
 clang/test/Sema/dllexport.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/clang/test/Sema/dllexport.c b/clang/test/Sema/dllexport.c
index 3f911fb095c0f..5f6ff36e290e9 100644
--- a/clang/test/Sema/dllexport.c
+++ b/clang/test/Sema/dllexport.c
@@ -2,6 +2,10 @@
 // RUN: %clang_cc1 -triple x86_64-win32   -fsyntax-only -fms-extensions 
-verify -std=c11 %s
 // RUN: %clang_cc1 -triple i686-mingw32   -fsyntax-only -fms-extensions 
-verify -std=c11 %s
 // RUN: %clang_cc1 -triple x86_64-mingw32 -fsyntax-only -fms-extensions 
-verify -std=c99 %s
+// RUN: %clang_cc1 -triple i686-windows-itanium   -fsyntax-only 
-fms-extensions -verify -std=c99 %s
+// RUN: %clang_cc1 -triple x86_64-windows-itanium -fsyntax-only 
-fms-extensions -verify -std=c11 %s
+// RUN: %clang_cc1 -triple x86_64-sie-ps5         -fsyntax-only 
-fms-extensions -verify -std=c99 %s
+// RUN: %clang_cc1 -triple x86_64-sie-ps5         -fsyntax-only 
-fms-extensions -verify -std=c11 %s
 
 // Invalid usage.
 __declspec(dllexport) typedef int typedef1;

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to