aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-scripts/assert.exp2
-rw-r--r--ld/testsuite/ld-scripts/assert2.d3
-rw-r--r--ld/testsuite/ld-scripts/assert2.t1
4 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 0910af2..3fad414 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-scripts/assert.exp: Run assert2.
+
+ * ld-scripts/assert2.d: New.
+ * ld-scripts/assert2.t: Likewise.
+
2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
Glauber de Oliveira Costa <glommer@gmail.com>
diff --git a/ld/testsuite/ld-scripts/assert.exp b/ld/testsuite/ld-scripts/assert.exp
index 1de9001..b4169ac 100644
--- a/ld/testsuite/ld-scripts/assert.exp
+++ b/ld/testsuite/ld-scripts/assert.exp
@@ -32,3 +32,5 @@ if ![ld_simple_link $ld tmpdir/assert "-T $srcdir/$subdir/assert.t tmpdir/assert
} else {
pass $testname
}
+
+run_dump_test "assert2"
diff --git a/ld/testsuite/ld-scripts/assert2.d b/ld/testsuite/ld-scripts/assert2.d
new file mode 100644
index 0000000..3b083ff
--- /dev/null
+++ b/ld/testsuite/ld-scripts/assert2.d
@@ -0,0 +1,3 @@
+# source: assert.s
+# ld: -T assert2.t
+# error: assert failed.
diff --git a/ld/testsuite/ld-scripts/assert2.t b/ld/testsuite/ld-scripts/assert2.t
new file mode 100644
index 0000000..f6a9822
--- /dev/null
+++ b/ld/testsuite/ld-scripts/assert2.t
@@ -0,0 +1 @@
+ASSERT(2 * 2 == 5, "assert failed");