Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-10.c
blob55054c00296f1c682b4f1c192618706e7884ccba
1 /* { dg-do run } */
3 #include <stdlib.h>
4 #include <openacc.h>
6 int
7 main (int argc, char **argv)
9 void *d;
10 acc_device_t devtype = acc_device_default;
12 acc_init (devtype);
14 d = acc_malloc (0);
15 if (d != NULL)
16 abort ();
18 acc_free (0);
20 acc_shutdown (devtype);
22 acc_set_device_type (devtype);
24 d = acc_malloc (0);
25 if (d != NULL)
26 abort ();
28 acc_shutdown (devtype);
30 acc_init (devtype);
32 d = acc_malloc (1024);
33 if (d == NULL)
34 abort ();
36 acc_free (d);
38 acc_shutdown (devtype);
40 acc_set_device_type (devtype);
42 d = acc_malloc (1024);
43 if (d == NULL)
44 abort ();
46 acc_free (d);
48 acc_shutdown (devtype);
50 return 0;