Add a testcase for group error.
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 4 Aug 2011 20:20:11 +0000 (20:20 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 4 Aug 2011 20:20:11 +0000 (20:20 +0000)
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.

gas/testsuite/ChangeLog
gas/testsuite/gas/elf/bad-group.d [new file with mode: 0644]
gas/testsuite/gas/elf/bad-group.err [new file with mode: 0644]
gas/testsuite/gas/elf/bad-group.s [new file with mode: 0644]
gas/testsuite/gas/elf/elf.exp

index fe9a5a9b227cbe262de635638300e1b2fa3f8351..c6c05796eaedea6f03d75303e55519027518bb32 100644 (file)
@@ -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 (file)
index 0000000..ba3de04
--- /dev/null
@@ -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 (file)
index 0000000..4b650d4
--- /dev/null
@@ -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 (file)
index 0000000..69710c7
--- /dev/null
@@ -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
index 0f5e97b73875445556f6229681807e370435ee25..b6b1f0a287258760ccae26f80f8c3f40a820eca5 100644 (file)
@@ -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