* lib/target-supports.exp (check_alias_available): Make the test
program acceptable to the Solaris assembler.
From-SVN: r68277
2003-06-20 Mark Mitchell <mark@codesourcery.com>
+ * lib/target-supports.exp (check_alias_available): Make the test
+ program acceptable to the Solaris assembler.
+
PR c++/10749
* g++.dg/template/memclass2.C: New test.
} else {
verbose "check_alias_available compiling testfile" 2
set f [open "tmp.c" "w"]
- puts $f "void f() __attribute__((alias(\"g\")));"
+ # Compile a small test program. The definition of "g" is
+ # necessary to keep the Solaris assembler from complaining
+ # about the program.
+ puts $f "void g() {} void f() __attribute__((alias(\"g\")));"
close $f
set lines [gcc_target_compile "tmp.c" "tmp.o" object ""]
file delete "tmp.c"