Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / vmx / harness.h
blobfaea3e97dba9d3fcadd4efc0e1fc208f84c572ac
1 /* Common code for most VMX test cases. To use, include this file,
2 then write a routine named test() that performs a series of calls
3 to check(). */
5 #include <stdlib.h>
6 #include <stdio.h>
7 #include <altivec.h>
9 static int failed;
10 static void test (void);
12 static void
13 check (int result, const char *name)
15 if (!result)
17 failed++;
18 printf ("fail %s\n", name);
22 int
23 main (void)
25 test ();
26 if (failed)
27 abort ();
29 return 0;