aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-08-04 20:20:11 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-08-04 20:20:11 +0000
commitcfba7fd51615afc56e59beb9a0f91804ff0c3f1b (patch)
tree73f6cacf7628da10a0e181153a272e7473866e5a /gas
parente0dd0826e246e3d39081881db7bcc69ca5ec77a2 (diff)
downloadgdb-cfba7fd51615afc56e59beb9a0f91804ff0c3f1b.zip
gdb-cfba7fd51615afc56e59beb9a0f91804ff0c3f1b.tar.gz
gdb-cfba7fd51615afc56e59beb9a0f91804ff0c3f1b.tar.bz2
Add a testcase for group error.
2011-08-04 H.J. Lu <hongjiu.lu@intel.com> * gas/elf/bad-group.d: New. * gas/elf/bad-group.err: Likewise. * gas/elf/bad-group.s: Likewise. * gas/elf/elf.exp: Run bad-group.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/elf/bad-group.d2
-rw-r--r--gas/testsuite/gas/elf/bad-group.err2
-rw-r--r--gas/testsuite/gas/elf/bad-group.s11
-rw-r--r--gas/testsuite/gas/elf/elf.exp1
5 files changed, 24 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index fe9a5a9..c6c0579 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/elf/bad-group.d: New.
+ * gas/elf/bad-group.err: Likewise.
+ * gas/elf/bad-group.s: Likewise.
+
+ * gas/elf/elf.exp: Run bad-group.
+
2011-08-03 James Greenhalgh <james.greenhalgh@arm.com>
* gas/arm/strex-bad-t.d: New testcase.
diff --git a/gas/testsuite/gas/elf/bad-group.d b/gas/testsuite/gas/elf/bad-group.d
new file mode 100644
index 0000000..ba3de04
--- /dev/null
+++ b/gas/testsuite/gas/elf/bad-group.d
@@ -0,0 +1,2 @@
+#name: Check bad group
+#error-output: bad-group.err
diff --git a/gas/testsuite/gas/elf/bad-group.err b/gas/testsuite/gas/elf/bad-group.err
new file mode 100644
index 0000000..4b650d4
--- /dev/null
+++ b/gas/testsuite/gas/elf/bad-group.err
@@ -0,0 +1,2 @@
+.*bad-group\.s: Assembler messages:
+.*bad-group\.s:.* Error: .*
diff --git a/gas/testsuite/gas/elf/bad-group.s b/gas/testsuite/gas/elf/bad-group.s
new file mode 100644
index 0000000..69710c7
--- /dev/null
+++ b/gas/testsuite/gas/elf/bad-group.s
@@ -0,0 +1,11 @@
+ .section .text.startup,"ax",%progbits
+ .globl main
+main:
+ .type main, @function
+.LFB0:
+ .section .text.unlikely
+.L5:
+ .globl __gxx_personality_v0
+ .section .gcc_except_table,"a",%progbits
+ .uleb128 .L5-.LFB0
+ .section .data.foo,"awG",%progbits,foo,comdat
diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp
index 0f5e97b..b6b1f0a 100644
--- a/gas/testsuite/gas/elf/elf.exp
+++ b/gas/testsuite/gas/elf/elf.exp
@@ -181,6 +181,7 @@ if { ([istarget "*-*-*elf*"]
run_dump_test "dwarf2-4"
run_dump_test "bad-section-flag"
run_dump_test "bad-size"
+ run_dump_test "bad-group"
load_lib gas-dg.exp
dg-init