aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/relocatable-common.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/relocatable-common.s')
-rw-r--r--test/ELF/relocatable-common.s5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ELF/relocatable-common.s b/test/ELF/relocatable-common.s
index 3ead775492fc..698380b650fc 100644
--- a/test/ELF/relocatable-common.s
+++ b/test/ELF/relocatable-common.s
@@ -30,7 +30,10 @@
# DEFCOMM-NEXT: Binding: Global
# DEFCOMM-NEXT: Type: Object
# DEFCOMM-NEXT: Other: 0
-# DEFCOMM-NEXT: Section: COMMON (0x2)
+# DEFCOMM-NEXT: Section: COMMON
# DEFCOMM-NEXT: }
+# RUN: not ld.lld -shared --no-define-common %t1.o -o %t 2>&1 | FileCheck --check-prefix=ERROR %s
+# ERROR: error: -no-define-common not supported in non relocatable output
+
.comm common,4,4