[llvm-commits] [llvm] r124139 - /llvm/trunk/test/MC/ELF/bad-section.s

Rafael Espindola rafael.espindola at gmail.com
Mon Jan 24 11:40:38 PST 2011


Author: rafael
Date: Mon Jan 24 13:40:38 2011
New Revision: 124139

URL: http://llvm.org/viewvc/llvm-project?rev=124139&view=rev
Log:
Jörg Sonnenberger noticed that we were missing this test.

Added:
    llvm/trunk/test/MC/ELF/bad-section.s

Added: llvm/trunk/test/MC/ELF/bad-section.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/bad-section.s?rev=124139&view=auto
==============================================================================
--- llvm/trunk/test/MC/ELF/bad-section.s (added)
+++ llvm/trunk/test/MC/ELF/bad-section.s Mon Jan 24 13:40:38 2011
@@ -0,0 +1,9 @@
+// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null 2>%t
+// RUN: FileCheck --input-file=%t %s
+
+// CHECK: error: unexpected token in directive
+// CHECK: .section "foo"-bar
+
+// test that we don't accept this, as gas doesn't.
+
+.section "foo"-bar





More information about the llvm-commits mailing list