1// REQUIRES: x86
2// RUN: llvm-mc -triple x86_64-windows-msvc -filetype obj -o %t.obj %s
3// RUN: echo -e ".globl myabsolute\nmyabsolute = 1" > %t.dupl.s
4// RUN: llvm-mc -triple x86_64-windows-msvc -filetype obj -o %t.dupl.obj %t.dupl.s
5// RUN: not lld-link /out:%t.exe %t.obj %t.dupl.obj 2>&1 | FileCheck %s
6
7// CHECK: error: duplicate symbol: myabsolute
8
9.globl myabsolute
10myabsolute = 0
11
12.globl entry
13entry:
14    ret
15