tcl global directive outside proc body does nothing (ld)
[deliverable/binutils-gdb.git] / ld / testsuite / ld-nios2 / nios2.exp
CommitLineData
36591ba1 1if { ! [istarget nios2-*-*] } {
965b1d80 2 return
36591ba1
SL
3}
4
5foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.d]] {
6 run_dump_test [file rootname $test]
7}
965b1d80 8
965b1d80
SL
9set test_name "NIOS2 Mixed R1 and R2 objects"
10set test mixed1
11
12if ![ld_assemble $as "-march=r1 $srcdir/$subdir/${test}a.s" tmpdir/${test}a.o] {
13 unresolved "Build mixed1a.o"
14 return
15}
16
17if ![ld_assemble $as "-march=r2 $srcdir/$subdir/${test}b.s" tmpdir/${test}b.o] {
18 unresolved "Build mixed1b.o"
19 return
20}
21
d9816402 22if { ![ld_link $ld tmpdir/$test "tmpdir/${test}a.o tmpdir/${test}b.o"] } {
965b1d80
SL
23 if [string match "*architecture * is incompatible*" $link_output] {
24 pass "$test_name"
25 } {
26 fail "$test_name"
27 }
28}
This page took 0.341695 seconds and 4 git commands to generate.