Intel IPP support for aubio
[aubio.git] / tests / src / test-delnull.c
1 #include <stdlib.h>
2 #include "aubio.h"
3
4 // When creating an aubio object, the user should check whether the object is
5 // set NULL, indicating the creation failed and the object was not allocated.
6
7 int main (void)
8 {
9   aubio_init();
10
11   uint_t return_code = 0;
12   fvec_t *f = new_fvec(-12);
13   cvec_t *c = new_cvec(-12);
14   lvec_t *l = new_lvec(-12);
15   aubio_fft_t *fft = new_aubio_fft(-12);
16   if (f != NULL) {
17     return_code = 1;
18   } else if (c != NULL) {
19     return_code = 2;
20   } else if (l != NULL) {
21     return_code = 3;
22   } else if (fft != NULL) {
23     return_code = 3;
24   }
25
26   aubio_cleanup();
27   
28   return return_code;
29 }