Skip to content

Commit

Permalink
Add a test of the deprecation message for mpzStruct
Browse files Browse the repository at this point in the history
----
Signed-off-by: Lydia Duncan <lydia-duncan@users.noreply.github.com>
  • Loading branch information
lydia-duncan committed Feb 18, 2022
1 parent 0ac409d commit 3032f1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/deprecated/BigInteger/deprecateMpzStruct.chpl
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);
1 change: 1 addition & 0 deletions test/deprecated/BigInteger/deprecateMpzStruct.good
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deprecateMpzStruct.chpl:7: warning: mpzStruct is deprecated, please use getImpl instead

0 comments on commit 3032f1a

Please sign in to comment.