Skip to content

Commit cd81f81

Browse files
authored
Add __pascal marker to output (#51)
1 parent 7034a4f commit cd81f81

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,9 @@ impl<'a> Serializer<'a> {
15111511
CallingConv::Cdecl => {
15121512
write!(self.w, "__cdecl ")?;
15131513
}
1514-
CallingConv::Pascal => {}
1514+
CallingConv::Pascal => {
1515+
write!(self.w, "__pascal ")?;
1516+
}
15151517
CallingConv::Thiscall => {
15161518
write!(self.w, "__thiscall ")?;
15171519
}
File renamed without changes.

tests/test_llvm.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,8 @@ fn test_llvm_ms_basic() {
107107
fn test_llvm_ms_operators() {
108108
llvm_test!("llvm-cases/ms-operators.test");
109109
}
110+
111+
#[test]
112+
fn test_llvm_ms_windows() {
113+
llvm_test!("llvm-cases/ms-windows.test");
114+
}

0 commit comments

Comments
 (0)