--| Copyright (c) 1993-2006 University of Southern California and contributors.
--| All rights reserved.
--| Your use of this work is governed under the terms of the GNU General
--| Public License version 2.

-- This is a test control file

test_name 	 change-cplusplus-to-c
test_description A system with a class that has a C++ external is frozen.  Then the external feature is changed to a C external and the system is refrozen.  The resulting C code compiles, but will not link due to calling "cpp" to do the link instead of "gcc".

define CALL "try ($make)"
define FEATURE "try (p: POINTER) is external "C++ [WEASEL %"wimp.h%"]" alias "eif_gc_run" end"
copy_sub 	Ace $TEST Ace
copy_sub 	test.e $CLUSTER test.e
compile_frozen
compile_result 	ok

define CALL "try"
define FEATURE "try is external "C" alias "eif_gc_run" end"
copy_sub 	test.e $CLUSTER test.e
compile_frozen
compile_result 	ok

c_compile_work
c_compile_result ok

execute_work 	NONE 	exec_output1
execute_result 	ok
compare		exec_output1 output

test_end