summaryrefslogtreecommitdiff
path: root/tests/gdimagesetinterpolationmethod/github_bug_00847.c
blob: bd852161ddf0e69c952b4c3fafbef9838234bf6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "gd.h"
#include "gdtest.h"

int main()
{
  gdImagePtr im;
  im = gdImageCreate(1, 1);
  gdTestAssert(gdImageSetInterpolationMethod(im, GD_BICUBIC_FIXED) != 0);
  gdTestAssert(gdImageGetInterpolationMethod(im) == GD_BICUBIC_FIXED);
  gdImageDestroy(im);
  return gdNumFailures();
}