From 323a265fadb44b6e35c14c08c4f1d701f508db40 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sat, 1 Sep 2012 18:09:26 +0000 Subject: PR gas/14521 * gas/mmix/group-1.d, gas/mmix/group-1.s: New test. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/mmix/group-1.d | 12 ++++++++++++ gas/testsuite/gas/mmix/group-1.s | 1 + 3 files changed, 18 insertions(+) create mode 100644 gas/testsuite/gas/mmix/group-1.d create mode 100644 gas/testsuite/gas/mmix/group-1.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e2a7e14594..cd23916c05 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-09-01 Hans-Peter Nilsson + + PR gas/14521 + * gas/mmix/group-1.d, gas/mmix/group-1.s: New test. + 2012-08-24 H.J. Lu * gas/elf/group0c.d: Skip Solaris. diff --git a/gas/testsuite/gas/mmix/group-1.d b/gas/testsuite/gas/mmix/group-1.d new file mode 100644 index 0000000000..a464e35b34 --- /dev/null +++ b/gas/testsuite/gas/mmix/group-1.d @@ -0,0 +1,12 @@ +#readelf: -Wa + +# Sanity check; the .section line caused a gas SEGV. +# See PR gas/14521. + +#... + +\[ .\] \.text +PROGBITS +0+ +0+48 +0+ +0+ +AXG +.* +#... +COMDAT group section \[ 1\] `\.group' \[\.foo\] contains 1 sections: + +\[Index\] +Name + +\[ +.\] +\.text +#pass diff --git a/gas/testsuite/gas/mmix/group-1.s b/gas/testsuite/gas/mmix/group-1.s new file mode 100644 index 0000000000..f61a0aa080 --- /dev/null +++ b/gas/testsuite/gas/mmix/group-1.s @@ -0,0 +1 @@ + .section .text,"axG",@progbits,.foo,comdat -- cgit v1.2.1