-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d96406b
commit a7212f8
Showing
3 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Copyright: Copyright (c) 2023 Jacob Carlborg. All rights reserved. | ||
* Authors: Jacob Carlborg | ||
* Version: Initial created: November 10, 2023 | ||
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | ||
*/ | ||
|
||
import Common; | ||
import dstep.translator.Options; | ||
|
||
unittest | ||
{ | ||
assertTranslates( | ||
q"C | ||
__int128 a(); | ||
unsigned __int128 b(); | ||
__int128_t c(); | ||
__uint128_t d(); | ||
typedef __uint128_t tb_uint128_t; | ||
C", | ||
|
||
q"D | ||
import core.int128; | ||
extern (C): | ||
Cent a (); | ||
Cent b (); | ||
Cent c (); | ||
Cent d (); | ||
alias tb_uint128_t = Cent; | ||
D", Options(reduceAliases: true)); | ||
} |