diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-12-28 18:04:10 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-12-28 18:04:10 +0000 |
commit | abd4c01a4066fb434714c7766119af69a8701e47 (patch) | |
tree | eead11969df5f82dfbb15a0259aa61e1efc7bdbc /ld/testsuite/ld-scripts/expr2.t | |
parent | 6ab12e0f337aeec39c6d0858eada8a7f6a516909 (diff) | |
download | gdb-abd4c01a4066fb434714c7766119af69a8701e47.zip gdb-abd4c01a4066fb434714c7766119af69a8701e47.tar.gz gdb-abd4c01a4066fb434714c7766119af69a8701e47.tar.bz2 |
Add testcases for PR ld/12327.
2010-12-28 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12327
* ld-scripts/defined4.d: New.
* ld-scripts/defined4.s: Likewise.
* ld-scripts/defined4.t: Likewise.
* ld-scripts/expr2.d: Likewise.
* ld-scripts/expr2.s: Likewise.
* ld-scripts/expr2.t: Likewise.
* ld-scripts/defined.exp: Run defined4.
* ld-scripts/expr.exp: Run expr2.
Diffstat (limited to 'ld/testsuite/ld-scripts/expr2.t')
-rw-r--r-- | ld/testsuite/ld-scripts/expr2.t | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/expr2.t b/ld/testsuite/ld-scripts/expr2.t new file mode 100644 index 0000000..634eab2 --- /dev/null +++ b/ld/testsuite/ld-scripts/expr2.t @@ -0,0 +1,11 @@ +SECTIONS +{ + . = 0xc000; + .text : + { + _text = .; + *(.text) + } + _end = .; +} +ASSERT (_end - _text <= 0x100, "fail"); |