--
-- CREATE_FUNCTION_1
--

CREATE FUNCTION widget_in(cstring)
   RETURNS widget
   AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/regress.dll'
   LANGUAGE 'c';

CREATE FUNCTION widget_out(widget)
   RETURNS cstring
   AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/regress.dll'
   LANGUAGE 'c';

CREATE FUNCTION int44in(cstring)
   RETURNS city_budget
   AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/regress.dll'
   LANGUAGE 'c';

CREATE FUNCTION int44out(city_budget)
   RETURNS cstring
   AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/regress.dll'
   LANGUAGE 'c';

CREATE FUNCTION check_primary_key ()
	RETURNS trigger
	AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/../../../contrib/spi/refint.dll'
	LANGUAGE 'C';

CREATE FUNCTION check_foreign_key ()
	RETURNS trigger
	AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/../../../contrib/spi/refint.dll'
	LANGUAGE 'C';

CREATE FUNCTION autoinc ()
	RETURNS trigger
	AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/../../../contrib/spi/autoinc.dll'
	LANGUAGE 'C';

CREATE FUNCTION funny_dup17 ()
        RETURNS trigger
        AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/regress.dll'
        LANGUAGE 'C';

CREATE FUNCTION ttdummy ()
        RETURNS trigger
        AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/regress.dll'
        LANGUAGE 'C';

CREATE FUNCTION set_ttdummy (int4)
        RETURNS int4
        AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/regress.dll'
        LANGUAGE 'C';

-- Things that shouldn't work:

CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
    AS 'SELECT ''not an integer'';';

CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
    AS 'not even SQL';

CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
    AS 'SELECT 1, 2, 3;';

CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
    AS 'SELECT $2;';

CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
    AS 'a', 'b';

CREATE FUNCTION test1 (int) RETURNS int LANGUAGE c
    AS 'nosuchfile';

CREATE FUNCTION test1 (int) RETURNS int LANGUAGE c
    AS 'M:/pgsqlcvssrc/pgsql/src/test/regress/regress.dll', 'nosuchsymbol';

CREATE FUNCTION test1 (int) RETURNS int LANGUAGE internal
    AS 'nosuch';
