X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fuffi-c-test.c;h=483d3bd4d1953094d38beea24066b1eb67c569c0;hb=6857c87b747c4d9816788432672280160d1df773;hp=ee1ab3a3f6fd6ddd542c3b65a823223285dc2a54;hpb=7c6a7667f14741d85625f4091e931f1d5ed42159;p=uffi.git diff --git a/tests/uffi-c-test.c b/tests/uffi-c-test.c index ee1ab3a..483d3bd 100644 --- a/tests/uffi-c-test.c +++ b/tests/uffi-c-test.c @@ -8,12 +8,8 @@ * * CVS Id: $Id$ * - * This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg + * This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg * - * UFFI users are granted the rights to distribute and use this software - * as governed by the terms of the Lisp Lesser GNU Public License - * (http://opensource.franz.com/preamble.html), also known as the LLGPL. - * These variables are correct for GCC * you'll need to modify these for other compilers ***************************************************************************/ @@ -119,6 +115,27 @@ cast_test_float () return y; } +DLLEXPORT +long +return_long_negative_one () +{ + return -1; +} + +DLLEXPORT +int +return_int_negative_one () +{ + return -1; +} + +DLLEXPORT +short +return_short_negative_one () +{ + return -1; +} + DLLEXPORT int fvar_addend = 3; typedef struct {