diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-01-10 14:37:40 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-01-10 14:37:40 +0000 |
commit | eda17dc18d7cf9ef3323c3c1a4d46cc218fa962b (patch) | |
tree | 32a48e32b0eb409eb03077bdc65f6eb9bee26d98 /ld | |
parent | f74656046a5263f1849d9288488d7de73627e1e1 (diff) | |
download | fsf-binutils-gdb-eda17dc18d7cf9ef3323c3c1a4d46cc218fa962b.zip fsf-binutils-gdb-eda17dc18d7cf9ef3323c3c1a4d46cc218fa962b.tar.gz fsf-binutils-gdb-eda17dc18d7cf9ef3323c3c1a4d46cc218fa962b.tar.bz2 |
Add a test for linker ASSERT.
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/assert.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/assert2.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/assert2.t | 1 |
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"); |