diff options
Diffstat (limited to 'ld/testsuite/ld-scripts/assert.t')
-rw-r--r-- | ld/testsuite/ld-scripts/assert.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ld/testsuite/ld-scripts/assert.t b/ld/testsuite/ld-scripts/assert.t index 62aee34ed348c..809ff4c3ff4fc 100644 --- a/ld/testsuite/ld-scripts/assert.t +++ b/ld/testsuite/ld-scripts/assert.t @@ -1,5 +1,10 @@ SECTIONS { - .empty : {} + .empty : { + here = !.; + ASSERT (!., "dot is not zero"); + ASSERT (here, "here is zero"); + } ASSERT (!SIZEOF(.empty), "Empty is not empty") + /DISCARD/ : { *(.reginfo) } } |