-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test of the deprecation message for mpzStruct
---- Signed-off-by: Lydia Duncan <lydia-duncan@users.noreply.github.com>
- Loading branch information
1 parent
0ac409d
commit 3032f1a
Showing
2 changed files
with
10 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use BigInteger; | ||
use GMP; | ||
|
||
config const debug = false; | ||
|
||
var a: bigint = 14; | ||
var impl = a.mpzStruct(); | ||
var ret = chpl_gmp_mpz_nlimbs((impl,)); | ||
if debug then writeln(ret); |
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 @@ | ||
deprecateMpzStruct.chpl:7: warning: mpzStruct is deprecated, please use getImpl instead |