C99 testsuite readiness: Cleanup of execute tests

This change updates the gcc.c-torture/execute/ to avoid obsolete
language constructs.  In the changed tests, use of the features
appears to be accidental, and updating allows the tests run with
the default compiler flags.

gcc/testsuite/

	* gcc.c-torture/execute/20000112-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/20000113-1.c (foobar): Add missing
	void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/20000314-2.c (main): Likewise.
	* gcc.c-torture/execute/20000402-1.c (main): Likewise.
	* gcc.c-torture/execute/20000403-1.c (main): Likewise.
	* gcc.c-torture/execute/20000503-1.c (main): Likewise.
	* gcc.c-torture/execute/20000605-2.c (main): Likewise.
	* gcc.c-torture/execute/20000717-1.c (main): Likewise.
	* gcc.c-torture/execute/20000717-5.c (main): Likewise.
	* gcc.c-torture/execute/20000726-1.c (main): Likewise.
	* gcc.c-torture/execute/20000914-1.c(blah): Add missing
	void types.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/20001009-1.c (main): Likewise.
	* gcc.c-torture/execute/20001013-1.c (main): Likewise.
	* gcc.c-torture/execute/20001031-1.c (main): Likewise.
	* gcc.c-torture/execute/20010221-1.c (main): Likewise.
	* gcc.c-torture/execute/20010723-1.c (main): Likewise.
	* gcc.c-torture/execute/20010915-1.c (s): Call
	__builtin_strcmp instead of strcmp.
	* gcc.c-torture/execute/20010924-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/20011128-1.c (main): Likewise.
	* gcc.c-torture/execute/20020226-1.c (main): Likewise.
	* gcc.c-torture/execute/20020328-1.c (foo): Add missing
	void types.
	* gcc.c-torture/execute/20020406-1.c (DUPFFexgcd): Call
	__builtin_printf instead of printf.
	(main): Likewise.
	* gcc.c-torture/execute/20020508-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/20020508-2.c (main): Likewise.
	* gcc.c-torture/execute/20020508-3.c (main): Likewise.
	* gcc.c-torture/execute/20020611-1.c (main): Likewise.
	* gcc.c-torture/execute/20021010-2.c (main): Likewise.
	* gcc.c-torture/execute/20021113-1.c (foo): Add missing
	void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/20021120-3.c (foo): Call
	__builtin_sprintf instead of sprintf.
	* gcc.c-torture/execute/20030125-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/20030216-1.c (main): Likewise.
	* gcc.c-torture/execute/20030404-1.c (main): Likewise.
	* gcc.c-torture/execute/20030606-1.c (main): Likewise.
	Call __builtin_memset instead of memset.
	* gcc.c-torture/execute/20030828-1.c (main): Add missing int
	and void types.
	* gcc.c-torture/execute/20030828-2.c (main): Likewise.
	* gcc.c-torture/execute/20031012-1.c: Call __builtin_strlen
	instead of strlen.
	* gcc.c-torture/execute/20031211-1.c (main): Add missing int
	and void types.
	* gcc.c-torture/execute/20040319-1.c (main): Likewise.
	* gcc.c-torture/execute/20040411-1.c (sub1): Call
	__builtin_memcpy instead of memcpy.
	* gcc.c-torture/execute/20040423-1.c (sub1): Likewise.
	* gcc.c-torture/execute/20040917-1.c (main): Add missing int
	and void types.
	* gcc.c-torture/execute/20050131-1.c (main): Likewise.
	* gcc.c-torture/execute/20051113-1.c (main): Likewise.
	* gcc.c-torture/execute/20121108-1.c (main): Call
	__builtin_printf instead of printf.
	* gcc.c-torture/execute/20170401-2.c (main): Add missing int
	and void types.
	* gcc.c-torture/execute/900409-1.c (main): Likewise.
	* gcc.c-torture/execute/920202-1.c (f): Add int return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/920302-1.c (execute): Add void return
	type.
	(main): Add missing int	and void types.
	* gcc.c-torture/execute/920410-1.c (main): Likewise.
	* gcc.c-torture/execute/920501-2.c (main): Likewise.
	* gcc.c-torture/execute/920501-3.c (execute): Add void return
	type.
	(main): Add missing int	and void types.
	* gcc.c-torture/execute/920501-5.c (x): Add int return type.
	(main): Add missing int	and void types.
	* gcc.c-torture/execute/920501-6.c (main): Add int return
	type.
	* gcc.c-torture/execute/920501-8.c (main): Add missing
	int and void types.  Call __builtin_strcmp instead of strcmp.
	* gcc.c-torture/execute/920506-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/920612-2.c (main): Likewise.
	* gcc.c-torture/execute/920618-1.c (main): Likewise.
	* gcc.c-torture/execute/920625-1.c (main): Likewise.
	* gcc.c-torture/execute/920710-1.c (main): Likewise.
	* gcc.c-torture/execute/920721-1.c (main): Likewise.
	* gcc.c-torture/execute/920721-4.c (main): Likewise.
	* gcc.c-torture/execute/920726-1.c (first, second): Call
	__builtin_strlen instead of strlen.
	(main): Add missing int	and void types.  Call __builtin_strcmp
	instead of strcmp.
	* gcc.c-torture/execute/920810-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/920829-1.c (main): Likewise.
	* gcc.c-torture/execute/920908-1.c (main): Likewise.
	* gcc.c-torture/execute/920922-1.c (main): Likewise.
	* gcc.c-torture/execute/920929-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/921006-1.c (main): Likewise.  Call
	__builtin_strcmp instead of strcmp.
	* gcc.c-torture/execute/921007-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/921016-1.c (main): Likewise.
	* gcc.c-torture/execute/921019-1.c (main): Likewise.
	* gcc.c-torture/execute/921019-2.c (main): Likewise.
	* gcc.c-torture/execute/921029-1.c (main): Likewise.
	* gcc.c-torture/execute/921104-1.c (main): Likewise.
	* gcc.c-torture/execute/921112-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/921113-1.c (w, f1, f2, gitter): Add
	void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/921117-1.c (check): Call
	__builtin_strcmp instead of strcmp.
	(main): Add missing int and void types.  Call __builtin_strcpy
	instead of strcpy.
	* gcc.c-torture/execute/921123-2.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/921202-2.c (main): Likewise.
	* gcc.c-torture/execute/921204-1.c (main): Likewise.
	* gcc.c-torture/execute/921208-1.c (main): Likewise.
	* gcc.c-torture/execute/930123-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/930126-1.c (main): Likewise.
	* gcc.c-torture/execute/930406-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/930408-1.c (p, f): Add missing void
	types.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/930429-1.c (main): Likewise.
	* gcc.c-torture/execute/930603-2.c (f): Add missing void
	types.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/930608-1.c (main): Likewise.
	* gcc.c-torture/execute/930614-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/930614-2.c (main): Likewise.
	* gcc.c-torture/execute/930622-2.c (main): Likewise.
	* gcc.c-torture/execute/930628-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/930725-1.c (main): Likewise.  Call
	__builtin_strcmp instead of strcmp.
	* gcc.c-torture/execute/930930-2.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/931002-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-10.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-11.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-12.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-13.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-14.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-2.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-3.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-4.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-5.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-6.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-7.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-8.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931004-9.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/931005-1.c (main): Likewise.
	* gcc.c-torture/execute/931110-1.c (main): Likewise.
	* gcc.c-torture/execute/931110-2.c (main): Likewise.
	* gcc.c-torture/execute/941014-1.c (main): Likewise.
	* gcc.c-torture/execute/941014-2.c (main): Likewise.
	* gcc.c-torture/execute/941015-1.c (main): Likewise.
	* gcc.c-torture/execute/941021-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/941025-1.c (main): Likewise.
	* gcc.c-torture/execute/941031-1.c (main): Likewise.
	* gcc.c-torture/execute/950221-1.c (g2): Add int return type.
	(f): Add missing void types.  Call __builtin_strcpy instead
	of strcpy.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/950426-2.c (main): Likewise.
	* gcc.c-torture/execute/950503-1.c (main): Likewise.
	* gcc.c-torture/execute/950511-1.c (main): Likewise.
	* gcc.c-torture/execute/950607-1.c (main): Likewise.
	* gcc.c-torture/execute/950607-2.c (main): Likewise.
	* gcc.c-torture/execute/950612-1.c (main): Likewise.
	* gcc.c-torture/execute/950628-1.c (main): Likewise.
	* gcc.c-torture/execute/950704-1.c (main): Likewise.
	* gcc.c-torture/execute/950706-1.c (main): Likewise.
	* gcc.c-torture/execute/950710-1.c (main): Likewise.
	* gcc.c-torture/execute/950714-1.c (main): Likewise.
	* gcc.c-torture/execute/950809-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/950906-1.c (g, f): Add void return
	type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/950915-1.c (main): Likewise.
	* gcc.c-torture/execute/950929-1.c (main): Likewise.
	* gcc.c-torture/execute/951003-1.c (f): Add missing int
	parameter type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/951115-1.c (g, f): Add void return
	type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/951204-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/960116-1.c (p): Add int return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/960117-1.c (main): Likewise.
	* gcc.c-torture/execute/960209-1.c (main): Likewise.
	* gcc.c-torture/execute/960215-1.c (main): Likewise.
	* gcc.c-torture/execute/960219-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/960301-1.c (main): Likewise.
	* gcc.c-torture/execute/960302-1.c (foo, main): Add missing
	int and void types.
	* gcc.c-torture/execute/960311-1.c (main): Likewise.
	* gcc.c-torture/execute/960311-2.c (main): Likewise.
	* gcc.c-torture/execute/960311-3.c (main): Likewise.
	* gcc.c-torture/execute/960312-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/960317-1.c (main): Likewise.
	* gcc.c-torture/execute/960321-1.c (main): Likewise.
	* gcc.c-torture/execute/960326-1.c (main): Likewise.
	* gcc.c-torture/execute/960327-1.c (g, main): Add missing
	int and void types.
	(f): Add missing void types.
	* gcc.c-torture/execute/960405-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/960416-1.c (main): Likewise.
	* gcc.c-torture/execute/960419-1.c (main): Likewise.
	* gcc.c-torture/execute/960419-2.c (main): Likewise.
	* gcc.c-torture/execute/960512-1.c (main): Likewise.
	* gcc.c-torture/execute/960513-1.c (main): Likewise.
	* gcc.c-torture/execute/960521-1.c (f): Add missing void
	types.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/960608-1.c (f): Add int return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/960801-1.c (main): Likewise.
	* gcc.c-torture/execute/960802-1.c (main): Likewise.
	* gcc.c-torture/execute/960909-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/961004-1.c (main): Likewise.
	* gcc.c-torture/execute/961017-1.c (main): Likewise.
	* gcc.c-torture/execute/961017-2.c (main): Likewise.
	* gcc.c-torture/execute/961026-1.c (main): Likewise.
	* gcc.c-torture/execute/961122-1.c (addhi, subhi): Add void
	return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/961122-2.c (main): Likewise.
	* gcc.c-torture/execute/961125-1.c (main): Likewise.
	* gcc.c-torture/execute/961206-1.c (main): Likewise.
	* gcc.c-torture/execute/961213-1.c (main): Likewise.
	* gcc.c-torture/execute/970214-1.c (main): Likewise.
	* gcc.c-torture/execute/970214-2.c (main): Likewise.
	* gcc.c-torture/execute/970217-1.c (sub): Add int return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/970923-1.c (main): Likewise.
	* gcc.c-torture/execute/980223.c (main): Likewise.
	* gcc.c-torture/execute/980506-1.c (main): Likewise.
	* gcc.c-torture/execute/980506-2.c (main): Likewise.
	* gcc.c-torture/execute/980506-3.c (build_lookup): Call
	__builtin_strlen instead of strlen and __builtin_memset
	instead of memset.
	* gcc.c-torture/execute/980526-3.c (main): Likewise.
	* gcc.c-torture/execute/980602-1.c (main): Likewise.
	* gcc.c-torture/execute/980604-1.c (main): Likewise.
	* gcc.c-torture/execute/980605-1.c (dummy): Add missing int
	parameter type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/980701-1.c (ns_name_skip): Add missing
	int return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/980709-1.c (main): Likewise.
	* gcc.c-torture/execute/990117-1.c (main): Likewise.
	* gcc.c-torture/execute/990127-1.c (main): Likewise.
	* gcc.c-torture/execute/990128-1.c (main): Likewise.
	* gcc.c-torture/execute/990130-1.c (main): Likewise.
	* gcc.c-torture/execute/990324-1.c (main): Likewise.
	* gcc.c-torture/execute/990524-1.c (main): Likewise.
	* gcc.c-torture/execute/990531-1.c (main): Likewise.
	* gcc.c-torture/execute/990628-1.c (fetch, load_data): Call
	__builtin_memset instead of memset.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/991019-1.c (main): Likewise.
	* gcc.c-torture/execute/991023-1.c (foo, main): Likewise.
	* gcc.c-torture/execute/991112-1.c (isprint): Declare.
	* gcc.c-torture/execute/991118-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/alias-1.c (ptr2): Add cast to float *
	in initializer.
	(typepun): Add missing void types.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/alias-2.c (main): Likewise.
	* gcc.c-torture/execute/alias-3.c (inc): Add missing
	void types.
	* gcc.c-torture/execute/alias-4.c (main): Add missing int
	return type.
	* gcc.c-torture/execute/arith-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/arith-rand-ll.c (main): Likewise.
	* gcc.c-torture/execute/arith-rand.c (main): Likewise.
	* gcc.c-torture/execute/bf-layout-1.c (main): Likewise.
	* gcc.c-torture/execute/bf-pack-1.c (foo): Add missing
	void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/bf-sign-1.c (main): Likewise.
	* gcc.c-torture/execute/bf-sign-2.c (main): Likewise.
	* gcc.c-torture/execute/bf64-1.c (main): Likewise.
	* gcc.c-torture/execute/builtin-prefetch-2.c (stat_int_arr):
	Add missing int array element type.
	* gcc.c-torture/execute/builtin-prefetch-3.c (stat_int_arr):
	Likewise.
	* gcc.c-torture/execute/cbrt.c (main): Add missing int and
	void types.
	* gcc.c-torture/execute/complex-1.c (main): Likewise.
	* gcc.c-torture/execute/complex-2.c (main): Likewise.
	* gcc.c-torture/execute/complex-3.c (main): Likewise.
	* gcc.c-torture/execute/complex-4.c (main): Likewise.
	* gcc.c-torture/execute/complex-5.c (main): Likewise.
	* gcc.c-torture/execute/compndlit-1.c (main): Likewise.
	* gcc.c-torture/execute/conversion.c (test_integer_to_float)
	(test_longlong_integer_to_float, test_float_to_integer)
	(test_float_to_longlong_integer): Add missing void return
	type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/cvt-1.c (main): Likewise.
	* gcc.c-torture/execute/divconst-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/divconst-2.c (main): Likewise.
	* gcc.c-torture/execute/divconst-3.c (main): Likewise.
	* gcc.c-torture/execute/enum-1.c (main): Likewise.
	* gcc.c-torture/execute/func-ptr-1.c (main): Likewise.
	* gcc.c-torture/execute/ieee/20011123-1.c (main): Likewise.
	* gcc.c-torture/execute/ieee/920518-1.c (main): Likewise.
	* gcc.c-torture/execute/ieee/920810-1.c (main): Likewise.
	Call __builtin_strcmp instead of strcmp.
	* gcc.c-torture/execute/ieee/930529-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/ieee/fp-cmp-1.c (main): Likewise.
	* gcc.c-torture/execute/ieee/fp-cmp-2.c (main): Likewise.
	* gcc.c-torture/execute/ieee/fp-cmp-3.c (main): Likewise.
	* gcc.c-torture/execute/ieee/fp-cmp-6.c (main): Likewise.
	* gcc.c-torture/execute/ieee/fp-cmp-9.c (main): Likewise.
	* gcc.c-torture/execute/ieee/minuszero.c (main): Likewise.
	* gcc.c-torture/execute/ieee/mzero2.c (expect): Call
	__builtin_memcmp instead of memcmp.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/ieee/mzero3.c (main): Likewise.
	(expectd, expectf): Call __builtin_memcmp instead of memcmp.
	* gcc.c-torture/execute/ieee/mzero5.c (negzero_check):
	Likewise.
	* gcc.c-torture/execute/ieee/rbug.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/index-1.c (main): Likewise.
	* gcc.c-torture/execute/loop-1.c (main): Likewise.
	* gcc.c-torture/execute/loop-2b.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/loop-6.c (main): Likewise.
	* gcc.c-torture/execute/loop-7.c (main): Likewise.
	* gcc.c-torture/execute/lto-tbaa-1.c (use_a, set_b, use_c):
	Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/memcpy-1.c (main): Likewise.
	* gcc.c-torture/execute/memcpy-2.c (main): Likewise.
	* gcc.c-torture/execute/memcpy-bi.c (main): Likewise.
	* gcc.c-torture/execute/memset-1.c (main): Likewise.
	* gcc.c-torture/execute/memset-2.c: Include <string.h>.
	* gcc.c-torture/execute/memset-3.c: Likewise.
	* gcc.c-torture/execute/nest-stdar-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/nestfunc-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/packed-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/pr15262-1.c (main): Likewise.  Call
	__builtin_malloc instead of malloc.
	* gcc.c-torture/execute/pr15262-2.c (foo): Add int return
	type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/pr15262.c (main): Likewise.
	* gcc.c-torture/execute/pr17252.c (main): Likewise.
	* gcc.c-torture/execute/pr21331.c (main): Likewise.
	* gcc.c-torture/execute/pr34176.c (foo): Add missing int
	type to definition of foo.
	* gcc.c-torture/execute/pr42231.c (max): Add missing int type
	to definition.
	* gcc.c-torture/execute/pr42614.c (expect_func): Call
	__builtin_abs instead of abs.
	* gcc.c-torture/execute/pr54937.c (t): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/ptr-arith-1.c (main): Likewise.
	* gcc.c-torture/execute/regstack-1.c (main): Likewise.
	* gcc.c-torture/execute/scope-1.c (f): Add missing void types.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/simd-5.c (main): Call __builtin_memcmp
	instead of memcmp.
	* gcc.c-torture/execute/strcmp-1.c (main): Add missing
	int and void types.
	* gcc.c-torture/execute/strcpy-1.c (main): Likewise.
	* gcc.c-torture/execute/strct-pack-1.c (main): Likewise.
	* gcc.c-torture/execute/strct-pack-2.c (main): Likewise.
	* gcc.c-torture/execute/strct-pack-4.c (main): Likewise.
	* gcc.c-torture/execute/strct-stdarg-1.c (f): Add void return
	type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/strct-varg-1.c (f): Add void return
	type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/strlen-1.c (main): Likewise.
	* gcc.c-torture/execute/strncmp-1.c (main): Likewise.
	* gcc.c-torture/execute/struct-ini-1.c (main): Likewise.
	* gcc.c-torture/execute/struct-ini-2.c (main): Likewise.
	* gcc.c-torture/execute/struct-ini-3.c (main): Likewise.
	* gcc.c-torture/execute/struct-ini-4.c (main): Likewise.
	* gcc.c-torture/execute/struct-ret-1.c (main): Likewise.
	* gcc.c-torture/execute/struct-ret-2.c (main): Likewise.
	* gcc.c-torture/execute/va-arg-1.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/va-arg-10.c (main): Likewise.
	* gcc.c-torture/execute/va-arg-2.c (main): Likewise.
	* gcc.c-torture/execute/va-arg-4.c (main): Likewise.
	* gcc.c-torture/execute/va-arg-5.c (va_double)
	(va_long_double): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/va-arg-6.c (f): Add void return type.
	(main): Add missing int and void types.
	* gcc.c-torture/execute/va-arg-9.c (main): Likewise.
	* gcc.c-torture/execute/widechar-1.c (main): Likewise.
This commit is contained in:
Florian Weimer 2023-11-13 08:54:11 +01:00
parent 8fe6a58dbb
commit fc649fe832
291 changed files with 682 additions and 337 deletions

View file

@ -13,7 +13,8 @@ special_format (fmt)
|| strchr (fmt, 'n') != 0);
}
main()
int
main(void)
{
if (special_format ("ee"))
abort ();

View file

@ -6,7 +6,8 @@ struct x {
unsigned x2:2;
unsigned x3:3;
};
void
foobar (int x, int y, int z)
{
struct x a = {x, y, z};
@ -19,7 +20,8 @@ foobar (int x, int y, int z)
exit (0);
}
main()
int
main(void)
{
foobar (1, 2, 3);
}

View file

@ -15,7 +15,8 @@ uint64 getmask(void)
return 0;
}
main()
int
main(void)
{
uint64 f = getmask();
if (sizeof (long long) == 8

View file

@ -16,7 +16,7 @@ typedef unsigned long ull;
void checkit(int);
main () {
int main (void) {
const ull a = 0x1400000000ULL;
const ull b = 0x80000000ULL;
const ull c = a/b;

View file

@ -7,7 +7,8 @@ int seqgt (unsigned long a, unsigned short win, unsigned long b);
int seqgt2 (unsigned long a, unsigned short win, unsigned long b);
main()
int
main(void)
{
if (! seqgt (*aa, 0x1000, *bb) || ! seqgt2 (*aa, 0x1000, *bb))
abort ();

View file

@ -7,7 +7,8 @@ sub (int a)
return ((0 > a - 2) ? 0 : a - 2) * sizeof (long);
}
main ()
int
main (void)
{
if (sub (0) != 0)
abort ();

View file

@ -11,7 +11,8 @@ void f1(struct F *x, struct F *y)
abort ();
}
main()
int
main(void)
{
struct F x, y;
x.i = 0;

View file

@ -16,7 +16,8 @@ foo (trio t, int i)
return bar (i, t);
}
main ()
int
main (void)
{
trio t = { 1, 2, 3 };

View file

@ -17,7 +17,8 @@ foo (trio t, int i, int j, int k)
return bar (i, j, k, t);
}
main ()
int
main (void)
{
trio t = { 1, 2, 3 };

View file

@ -13,7 +13,8 @@ struct adjust_template
static struct adjust_template adjust = {0, 0, 1, 1};
main ()
int
main (void)
{
short x = 1, y = 1;

View file

@ -269,8 +269,9 @@ RVALUE_CONV,
LAST_CPLUS_TREE_CODE
};
blah(){}
void blah(void){}
void
convert_like_real (convs)
tree convs;
{
@ -284,7 +285,8 @@ convert_like_real (convs)
abort ();
}
main()
int
main(void)
{
tree convs = (void *)malloc (sizeof (struct tree_common));;

View file

@ -1,6 +1,7 @@
void abort(void);
int a,b;
main()
int
main(void)
{
int c=-2;
int d=0xfe;

View file

@ -12,7 +12,7 @@ int foo(struct x *p, int y)
return 0;
}
main()
int main(void)
{
if (foo (&z, 10))
abort ();

View file

@ -27,7 +27,8 @@ long long t4 (void)
return i;
}
main ()
int
main (void)
{
if (t2 () != 4096)
abort ();

View file

@ -3,7 +3,8 @@ void exit (int);
int n = 2;
main ()
int
main (void)
{
int i, x = 45;

View file

@ -10,8 +10,8 @@ test ()
return giv;
}
main()
int
main(void)
{
if (test () != 8)
abort ();

View file

@ -55,7 +55,7 @@ int x (int argc, char **argv)
char *m (char *x) { abort (); }
char *s (char *v, char **pp)
{
if (strcmp (v, "a") != 0 || check++ > 1)
if (__builtin_strcmp (v, "a") != 0 || check++ > 1)
abort ();
*pp = v+1;
return 0;

View file

@ -37,7 +37,8 @@ struct {
{ 'e', 'b' }
};
main()
int
main(void)
{
if (a1.a1c != '4')
abort();

View file

@ -1,6 +1,7 @@
void exit (int);
main()
int
main(void)
{
char blah[33] = "01234567890123456789";
exit (0);

View file

@ -29,7 +29,8 @@ unsigned long long ull = LL_VALUE;
int shift1 = SHIFT1;
int shift2 = SHIFT2;
main ()
int
main (void)
{
if (ROR (uc, shift1) != ROR (CHAR_VALUE, SHIFT1))
abort ();

View file

@ -3,7 +3,7 @@ void exit (int);
int b = 0;
func () { }
void func (void) { }
void
testit(int x)

View file

@ -65,7 +65,7 @@ DUPFF DUPFFexgcd(DUPFF *fcofac, DUPFF *gcofac, const DUPFF f, const DUPFF g)
FFelem q, lcu, lcvrecip, p;
int df, dg, du, dv;
printf("DUPFFexgcd called on degrees %d and %d\n", DUPFFdeg(f), DUPFFdeg(g));
__builtin_printf("DUPFFexgcd called on degrees %d and %d\n", DUPFFdeg(f), DUPFFdeg(g));
if (DUPFFdeg(f) < DUPFFdeg(g)) return DUPFFexgcd(gcofac, fcofac, g, f); /*** BUG IN THIS LINE ***/
if (DUPFFdeg(f) != 2 || DUPFFdeg(g) != 1) abort();
if (f->coeffs[0] == 0) return f;
@ -121,7 +121,7 @@ int main()
f = DUPFFnew(1); f->coeffs[1] = 1; f->deg = 1;
g = DUPFFnew(2); g->coeffs[2] = 1; g->deg = 2;
printf("calling DUPFFexgcd on degrees %d and %d\n", DUPFFdeg(f), DUPFFdeg(g)) ;
__builtin_printf("calling DUPFFexgcd on degrees %d and %d\n", DUPFFdeg(f), DUPFFdeg(g)) ;
h = DUPFFexgcd(&cf, &cg, f, g);
return 0;
}

View file

@ -29,7 +29,8 @@ unsigned long long ull = LL_VALUE;
int shift1 = SHIFT1;
int shift2 = SHIFT2;
main ()
int
main (void)
{
if (ROR (uc, shift1) != ROR (CHAR_VALUE, SHIFT1))
abort ();

View file

@ -27,7 +27,8 @@ long long ll = LL_VALUE;
int shift1 = SHIFT1;
int shift2 = SHIFT2;
main ()
int
main (void)
{
if (ROR (c, shift1) != ROR (CHAR_VALUE, SHIFT1))
abort ();

View file

@ -27,7 +27,8 @@ long long ll = LL_VALUE;
int shift1 = SHIFT1;
int shift2 = SHIFT2;
main ()
int
main (void)
{
if (ROR (c, shift1) != ROR (CHAR_VALUE, SHIFT1))
abort ();

View file

@ -26,7 +26,8 @@ void x ()
unsigned int n = 30;
main ()
int
main (void)
{
x ();
if (p != 1 || k != 1)

View file

@ -18,7 +18,8 @@ unsigned int *global_vramPtr = (unsigned int *)0xa000;
IOGBounds global_bounds = { 100, 150, 100, 150 };
IOGBounds global_saveRect = { 75, 175, 75, 175 };
main()
int
main(void)
{
unsigned int *vramPtr;
int width;

View file

@ -6,14 +6,16 @@
void abort (void);
void exit (int);
void
foo (int *p)
{
*p = 10;
}
main()
int
main(void)
{
int *ptr = alloca (sizeof (int));
int *ptr = __builtin_alloca (sizeof (int));
*ptr = 5;
foo (ptr);
if (*ptr == 5)

View file

@ -15,7 +15,7 @@ unsigned int foo (char *c, unsigned int x, unsigned int y)
{
register unsigned int z LOC;
sprintf (c, "%d", x / y);
__builtin_sprintf (c, "%d", x / y);
z = x + 1;
return z / (y + 1);
}

View file

@ -19,7 +19,8 @@ q1(float a)
{
return floor(a);
}
main()
int
main(void)
{
#ifdef __OPTIMIZE__
if (t(0)!=0)

View file

@ -5,7 +5,8 @@
void link_error (void);
const double one=1.0;
main ()
int
main (void)
{
#ifdef __OPTIMIZE__
if ((int) one != 1)

View file

@ -4,7 +4,8 @@
This ended up causing CCP to think that 'k' was the constant '1'. */
void abort (void);
main()
int
main(void)
{
int i, j, k;

View file

@ -11,16 +11,17 @@ int * foo (int *x, int b)
return x;
}
main()
int
main(void)
{
int a[5];
memset (a, 1, sizeof (a));
__builtin_memset (a, 1, sizeof (a));
if (foo(a, 0) - a != 1 || a[0] != 55 || a[1] != a[4])
abort();
memset (a, 1, sizeof (a));
__builtin_memset (a, 1, sizeof (a));
if (foo(a, 2) - a != 2 || a[0] != 55 || a[1] != 2)
abort();

View file

@ -8,7 +8,8 @@ int bar (void)
return *p + 1;
}
main ()
int
main (void)
{
/* Variable 'i' is never used but it's aliased to a global pointer. The
alias analyzer was not considering that 'i' may be used in the call to

View file

@ -6,7 +6,8 @@ struct rtx_def
int code;
};
main()
int
main(void)
{
int tmp[2];
struct rtx_def *r, s;

View file

@ -23,7 +23,7 @@ static void foo ()
a[0]=0;
memset( &a[0], 0xCD, STRLEN );
a[STRLEN]=0;
if (strlen(a) != STRLEN)
if (__builtin_strlen(a) != STRLEN)
abort ();
}

View file

@ -5,7 +5,8 @@ struct a { unsigned int bitfield : 1; };
unsigned int x;
main()
int
main(void)
{
struct a a = {0};
x = 0xbeef;

View file

@ -11,7 +11,8 @@ blah (int zzz)
return foo;
}
main()
int
main(void)
{
if (blah (-1) != 1)
abort ();

View file

@ -8,7 +8,7 @@ sub1 (int i, int j)
if (j == 2)
{
memcpy (x, y, 10 * sizeof (int));
__builtin_memcpy (x, y, 10 * sizeof (int));
return sizeof (c);
}
else

View file

@ -11,7 +11,7 @@ sub1 (int i, int j)
if (j == 2)
{
memcpy (x, y, 10 * sizeof (int));
__builtin_memcpy (x, y, 10 * sizeof (int));
return sizeof (c);
}
else

View file

@ -22,7 +22,8 @@ not_inlinable ()
inlinable();
}
main ()
int
main (void)
{
test_var = 10;
/* Variable test_var should be considered call-clobbered by the call

View file

@ -10,7 +10,8 @@ foo (int a)
return a;
}
main()
int
main(void)
{
if (foo (9) != 10)
abort ();

View file

@ -54,7 +54,7 @@ long long Sum2 (Struct3 *instrs)
}
return count;
}
main() {
int main(void) {
Struct3 *p = malloc (sizeof (int) + 3 * sizeof(Union));
memset(p, 0, sizeof(int) + 3*sizeof(Union));
p->Count = 3;

View file

@ -41,11 +41,11 @@ int string_to_ip(const char *s)
int main(void)
{
int t = string_to_ip (temp);
printf ("%x\n", t);
printf ("%x\n", result);
__builtin_printf ("%x\n", t);
__builtin_printf ("%x\n", result);
if (t != result)
__builtin_abort ();
printf ("WORKS.\n");
__builtin_printf ("WORKS.\n");
return 0;
}

View file

@ -11,7 +11,8 @@ struct adjust_template
static struct adjust_template adjust = {1, 1};
main ()
int
main (void)
{
short x = 1, y = 1;

View file

@ -8,7 +8,8 @@ long f4(long a){return a&~0x000000ffL;}
long f5(long a){return a&0x0000ffffL;}
long f6(long a){return a&~0x0000ffffL;}
main ()
int
main (void)
{
long a = 0x89ABCDEF;

View file

@ -3,6 +3,7 @@ void exit (int);
static int rule_text_needs_stack_pop = 0;
static int input_stack_pos = 1;
int
f (void)
{
rule_text_needs_stack_pop = 1;
@ -13,7 +14,8 @@ f (void)
return 0;
}
main ()
int
main (void)
{
f ();
exit (0);

View file

@ -5,6 +5,7 @@ void exit (int);
short optab[5];
char buf[10];
void
execute (ip)
register short *ip;
{
@ -29,7 +30,8 @@ z: *bp++='z';
short p[5];
main ()
int
main (void)
{
execute ((short *) 0);
p[0] = optab[1];
@ -37,7 +39,7 @@ main ()
p[2] = optab[1];
p[3] = optab[2];
execute (&p);
if (strcmp (buf, "xyxyz"))
if (__builtin_strcmp (buf, "xyxyz"))
abort ();
exit (0);
}

View file

@ -2,5 +2,5 @@
void exit (int);
main(){int d[40000];d[0]=0;exit(0);}
int main(void){int d[40000];d[0]=0;exit(0);}

View file

@ -98,7 +98,8 @@ facts (t, a_int, x0, p)
}
}
main ()
int
main (void)
{
unsigned long long t;
unsigned x0, a;

View file

@ -4,6 +4,7 @@ void abort (void);
void exit (int);
int tab[9];
void
execute(oip, ip)
unsigned short *oip, *ip;
{
@ -20,7 +21,8 @@ base:
goto *(&&base + *ip++);
}
main()
int
main(void)
{
unsigned short ip[10];
int i;

View file

@ -3,6 +3,7 @@
void abort (void);
void exit (int);
int
x (int i)
{
void *j[] = {&&x, &&y, &&z};
@ -12,7 +13,8 @@ x (int i)
z:return 5;
}
main ()
int
main (void)
{
if (x (0) != 2 || x (1) != 3 || x (2) != 5)
abort();

View file

@ -79,6 +79,7 @@ int plist (p0, p1, tab)
return xp - tab;
}
int
main (argc, argv)
int argc;
char *argv[];

View file

@ -34,10 +34,11 @@ va (int a, double b, int c, ...)
va_end (ap);
}
main()
int
main(void)
{
va (1, 1.0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
if (strcmp ("1,1.000000,2,3,4,5,6,7,8,9,10,11,12,13,14,15", buf))
if (__builtin_strcmp ("1,1.000000,2,3,4,5,6,7,8,9,10,11,12,13,14,15", buf))
abort();
exit(0);
}

View file

@ -1,4 +1,4 @@
void abort (void);
void exit (int);
int l[]={0,1};
main(){int*p=l;switch(*p++){case 0:exit(0);case 1:break;case 2:break;case 3:case 4:break;}abort();}
int main(void){int*p=l;switch(*p++){case 0:exit(0);case 1:break;case 2:break;case 3:case 4:break;}abort();}

View file

@ -3,7 +3,8 @@
void abort (void);
void exit (int);
main ()
int
main (void)
{
int i = 0;
int a (int x)

View file

@ -1,3 +1,3 @@
void abort (void);
void exit (int);
main(){if(1.17549435e-38F<=1.1)exit(0);abort();}
int main(void){if(1.17549435e-38F<=1.1)exit(0);abort();}

View file

@ -33,7 +33,8 @@ static int va2(int nargs,...)
va_end(args);
}
main()
int
main(void)
{
va1(4,pts[0],pts[1],pts[2],pts[3]);
va2(4,ipts[0],ipts[1],ipts[2],ipts[3]);

View file

@ -1,7 +1,8 @@
void abort (void);
void exit (int);
main()
int
main(void)
{
if ((double) 18446744073709551615ULL < 1.84467440737095e+19 ||
(double) 18446744073709551615ULL > 1.84467440737096e+19)

View file

@ -1,4 +1,4 @@
void abort (void);
void exit (int);
long f(short a,short b){return (long)a/b;}
main(){if(f(-32768,-1)!=32768L)abort();else exit(0);}
int main(void){if(f(-32768,-1)!=32768L)abort();else exit(0);}

View file

@ -49,7 +49,8 @@ int try (int num) {
return -1;
}
main()
int
main(void)
{
int i;
for (i = 1; i <= 6; i++)

View file

@ -22,7 +22,7 @@ int first(char *buf, char *fmt, ...)
{
number = va_arg(args, int);
sprintf(bp, "%d", number);
bp += strlen(bp);
bp += __builtin_strlen(bp);
}
else
*bp++ = fmt[pos];
@ -45,7 +45,7 @@ struct spurious second(char *buf,char *fmt, ...)
{
number = va_arg(args, int);
sprintf(bp, "%d", number);
bp += strlen(bp);
bp += __builtin_strlen(bp);
}
else
*bp++ = fmt[pos];
@ -55,12 +55,13 @@ struct spurious second(char *buf,char *fmt, ...)
return dummy;
}
main()
int
main(void)
{
char buf1[100], buf2[100];
first(buf1, "i i ", 5, 20);
second(buf2, "i i ", 5, 20);
if (strcmp ("5 20 ", buf1) || strcmp ("5 20 ", buf2))
if (__builtin_strcmp ("5 20 ", buf1) || __builtin_strcmp ("5 20 ", buf2))
abort();
exit(0);
}

View file

@ -12,7 +12,7 @@ t*f(t*clas,int size)
child->size=size;
return child;
}
main()
int main(void)
{
t foo,*bar;
memset(&foo,37,sizeof(t));

View file

@ -1,4 +1,4 @@
void abort (void);
void exit (int);
long long c=2863311530LL,c3=2863311530LL*3;
main(){if(c*3!=c3)abort();exit(0);}
int main(void){if(c*3!=c3)abort();exit(0);}

View file

@ -20,7 +20,8 @@ va_end(ap);
return X;
}
main()
int
main(void)
{
T X,Y;
int i;

View file

@ -8,7 +8,8 @@ f(p)unsigned long*p;
return p + a;
}
main ()
int
main (void)
{
unsigned long x = 0x80000000UL;
if (f(&x) != &x + 0x81)

View file

@ -1,6 +1,7 @@
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
/* REPRODUCED:RUN:SIGNAL MACHINE:sparc OPTIONS: */
void exit (int);
void
f(int n)
{
int i;
@ -8,7 +9,8 @@ double v[n];
for(i=0;i<n;i++)
v[i]=0;
}
main()
int
main(void)
{
f(100);
exit(0);

View file

@ -1,8 +1,9 @@
/* REPRODUCED:RUN:SIGNAL MACHINE:i386 OPTIONS:-O */
void abort(void);
void exit(int);
main()
int
main(void)
{
if(strcmp("X","")<0)abort();
if(__builtin_strcmp("X","")<0)abort();
exit(0);
}

View file

@ -2,7 +2,8 @@ void abort(void);
void exit(int);
static int strcmp(){return-1;}
#define strcmp __builtin_strcmp
main()
int
main(void)
{
if(strcmp("X","X\376")>=0)abort();
exit(0);

View file

@ -1,7 +1,8 @@
void abort (void);
void exit (int);
main()
int
main(void)
{
int j=1081;
struct

View file

@ -3,7 +3,8 @@ void exit (int);
void *foo[]={(void *)&("X"[0])};
main ()
int
main (void)
{
if (((char*)foo[0])[0] != 'X')
abort ();

View file

@ -1,7 +1,8 @@
void abort (void);
void exit (int);
main()
int
main(void)
{
double x,y=0.5;
x=y/0.2;

View file

@ -15,7 +15,8 @@ build(long h, long l)
return back;
}
main()
int
main(void)
{
if (build(0, 1) != 0x0000000000000001LL)
abort();

View file

@ -1,7 +1,8 @@
void abort (void);
void exit (int);
main ()
int
main (void)
{
unsigned long val = 1;

View file

@ -6,13 +6,15 @@ union u {
double d;
} x[2], v;
void
f (x, v)
union u *x, v;
{
*++x = v;
}
main()
int
main(void)
{
x[1].t.i1 = x[1].t.i2 = 0;
v.t.i1 = 1;

View file

@ -13,19 +13,22 @@ typedef struct {
float x, y;
} vector_t;
w(float x, float y) {}
void w(float x, float y) {}
void
f1(float x, float y)
{
if (x != 0 || y != 0)
abort();
}
void
f2(float x, float y)
{
if (x != 1 || y != 1)
abort();
}
void
gitter(int count, vector_t pos[], list_t list, int *nww, vector_t limit[2], float r)
{
float d;
@ -51,7 +54,8 @@ gitter(int count, vector_t pos[], list_t list, int *nww, vector_t limit[2], floa
vector_t pos[1] = {{0., 0.}};
vector_t limit[2] = {{0.,0.},{1.,1.}};
main()
int
main(void)
{
int nww;
struct_list list;

View file

@ -11,13 +11,14 @@ check (struct s p)
{
if (p.flag != 99)
return 1;
return strcmp (p.text, "0123456789");
return __builtin_strcmp (p.text, "0123456789");
}
main ()
int
main (void)
{
cell.flag = 99;
strcpy (cell.text, "0123456789");
__builtin_strcpy (cell.text, "0123456789");
if (check (cell))
abort();

View file

@ -15,7 +15,8 @@ void f (four_quarters j)
a = j.b3;
}
main ()
int
main (void)
{
four_quarters x;
x.b0 = x.b1 = x.b2 = 0;

View file

@ -8,7 +8,8 @@ f(long long x)
return x & 0xff;
}
main()
int
main(void)
{
if (f(0x0123456789ABCDEFLL) != 0xCD)
abort();

View file

@ -34,7 +34,8 @@ f(bu i)
return o;
}
main()
int
main(void)
{
bu a;
bu r;

View file

@ -13,7 +13,8 @@ Int(double (*f)(double), double a)
return (*f)(a);
}
main()
int
main(void)
{
if (Int(&f,2.0) != 4.0)
abort();

View file

@ -1,12 +1,14 @@
void abort (void);
void exit (int);
void
f(int *x)
{
*x = 0;
}
main()
int
main(void)
{
int s, c, x;
char a[] = "c";

View file

@ -12,7 +12,8 @@ f(struct s x)
return x;
}
main()
int
main(void)
{
static struct s i;
i.a = 12;

View file

@ -2,7 +2,8 @@
void exit (int);
f()
void
f(void)
{
int x = 1;
#if defined(STACK_SIZE)
@ -21,7 +22,8 @@ f()
exit(0);
}
main()
int
main(void)
{
f();
}

View file

@ -8,12 +8,14 @@ struct {
E eval;
} s;
p()
void
p(void)
{
abort();
}
f()
void
f(void)
{
switch (s.eval)
{
@ -22,7 +24,8 @@ f()
}
}
main()
int
main(void)
{
s.eval = e1;
f();

View file

@ -8,7 +8,8 @@ f (char *p)
return p;
}
main ()
int
main (void)
{
char *p = "";
if (f (p) != p + 1)

View file

@ -3,7 +3,8 @@ void exit (int);
int w[2][2];
f ()
void
f (void)
{
int i, j;
@ -13,7 +14,8 @@ f ()
w[i][j] = 1;
}
main ()
int
main (void)
{
f ();
if (w[0][0] != 1 || w[1][1] != 1 || w[1][0] != 0 || w[0][1] != 0)

View file

@ -4,7 +4,8 @@ void exit (int);
double f (double a) {}
double (* const a[]) (double) = {&f};
main ()
int
main (void)
{
double (*p) ();
p = &f;

View file

@ -1,12 +1,14 @@
void abort (void);
void exit (int);
void
f (double *ty)
{
*ty = -1.0;
}
main ()
int
main (void)
{
double foo[6];
double tx = 0.0, ty, d;

View file

@ -1,7 +1,8 @@
void abort (void);
void exit (int);
main ()
int
main (void)
{
int i, j, k, l;
float x[8][2][8][2];

View file

@ -13,7 +13,8 @@ ld_to_ll (long double n)
return n;
}
main ()
int
main (void)
{
long long n;

View file

@ -1,13 +1,15 @@
void abort (void);
void exit (int);
void
f (double x[2], double y[2])
{
if (x == y)
abort ();
}
main ()
int
main (void)
{
struct { int f[3]; double x[1][2]; } tp[4][2];
int i, j, ki, kj, mi, mj;

View file

@ -15,10 +15,11 @@ f ()
return (v == 0 ? g () : "abc");
}
main ()
int
main (void)
{
v = 1;
if (!strcmp (f (), "abc"))
if (!__builtin_strcmp (f (), "abc"))
exit (0);
abort();
}

View file

@ -25,7 +25,8 @@ test_endianness_vol()
return dw.u[0] != 0 ? 1 : 0;
}
main ()
int
main (void)
{
if (test_endianness () != test_endianness_vol ())
abort ();

View file

@ -2,12 +2,14 @@
void exit (int);
void
f (void (*func) ())
{
func ();
}
main ()
int
main (void)
{
void t0 ()
{

View file

@ -6,6 +6,7 @@ struct tiny
int c;
};
void
f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
{
if (x.c != 10)
@ -21,7 +22,8 @@ f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
abort ();
}
main ()
int
main (void)
{
struct tiny x[3];
x[0].c = 10;

View file

@ -9,6 +9,7 @@ struct tiny
char d;
};
void
f (int n, ...)
{
struct tiny x;
@ -32,7 +33,8 @@ f (int n, ...)
va_end (ap);
}
main ()
int
main (void)
{
struct tiny x[3];
x[0].c = 10;

View file

@ -8,6 +8,7 @@ struct tiny
char e;
};
void
f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
{
if (x.c != 10)
@ -35,7 +36,8 @@ f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
abort ();
}
main ()
int
main (void)
{
struct tiny x[3];
x[0].c = 10;

View file

@ -10,6 +10,7 @@ struct tiny
char e;
};
void
f (int n, ...)
{
struct tiny x;
@ -35,7 +36,8 @@ f (int n, ...)
va_end (ap);
}
main ()
int
main (void)
{
struct tiny x[3];
x[0].c = 10;

View file

@ -9,6 +9,7 @@ struct tiny
char f;
};
void
f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
{
if (x.c != 10)
@ -42,7 +43,8 @@ f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
abort ();
}
main ()
void
main (int)
{
struct tiny x[3];
x[0].c = 10;

Some files were not shown because too many files have changed in this diff Show more