diff options
author | David Schleef <ds@schleef.org> | 2005-02-13 23:04:41 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2005-02-13 23:04:41 +0000 |
commit | 5533b305d3f81ab510f4e46bd70480563517ec95 (patch) | |
tree | 85776cb5361daa831f3f49dd53acb5bd921b3dc6 | |
parent | 6420cbe9eaa99050266e99ce7c670f2b44c97bfd (diff) | |
download | liboil-5533b305d3f81ab510f4e46bd70480563517ec95.tar.gz |
* testsuite/dso_check.c: (main): Add
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | testsuite/dso_check.c | 58 |
2 files changed, 62 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2005-02-13 David Schleef <ds@schleef.org> + + * testsuite/dso_check.c: (main): Add + 2005-02-01 David Schleef <ds@schleef.org> * liboil/liboilcpu.c: (test_altivec), (oil_cpu_powerpc_getflags), diff --git a/testsuite/dso_check.c b/testsuite/dso_check.c new file mode 100644 index 0000000..abb3163 --- /dev/null +++ b/testsuite/dso_check.c @@ -0,0 +1,58 @@ +/* + * LIBOIL - Library of Optimized Inner Loops + * Copyright (c) 2004 David A. Schleef <ds@schleef.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + + +#include <stdio.h> +#include <liboil/liboil.h> +#include <ctype.h> +#include <stdlib.h> +#include <string.h> + +#include <liboil/liboilprototype.h> + +int main (int argc, char *argv[]) +{ + OilFunctionClass *klass; + int i; + int n; + + oil_init (); + + printf("null is at %p\n", &oil_function_class_null); + oil_null (); + + n = oil_class_get_n_classes (); + for (i=0;i<n; i++ ){ + klass = oil_class_get_by_index(i); + + printf("%p %s\n", klass, klass->name); + } + + return 0; +} + + |