diff options
Diffstat (limited to 'test/MC/COFF/comm.s')
-rw-r--r-- | test/MC/COFF/comm.s | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/MC/COFF/comm.s b/test/MC/COFF/comm.s index 37db75f..773ebde 100644 --- a/test/MC/COFF/comm.s +++ b/test/MC/COFF/comm.s @@ -1,7 +1,9 @@ // RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -t | FileCheck %s .lcomm _a,4,4 -.comm _b, 4 +.comm _b, 4, 2 +// _c has size 1 but align 32, the value field is the max of size and align. +.comm _c, 1, 5 // CHECK: Symbol { @@ -17,7 +19,17 @@ // CHECK: Symbol { // CHECK: Name: _b // CHECK-NEXT: Value: 4 -// CHECK-NEXT: Section: (0) +// CHECK-NEXT: Section: IMAGE_SYM_UNDEFINED (0) +// CHECK-NEXT: BaseType: Null +// CHECK-NEXT: ComplexType: Null +// CHECK-NEXT: StorageClass: External +// CHECK-NEXT: AuxSymbolCount: 0 +// CHECK-NEXT: } + +// CHECK: Symbol { +// CHECK: Name: _c +// CHECK-NEXT: Value: 32 +// CHECK-NEXT: Section: IMAGE_SYM_UNDEFINED (0) // CHECK-NEXT: BaseType: Null // CHECK-NEXT: ComplexType: Null // CHECK-NEXT: StorageClass: External |