1# REQUIRES: aarch64, x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t.o
3# RUN: not ld.lld %t.o -T %s -o /dev/null 2>&1 | FileCheck %s
4
5## AArch64 needs thunks and has different address finalization process, so test
6## it as well.
7# RUN: llvm-mc -filetype=obj -triple=aarch64 /dev/null -o %t.o
8# RUN: not ld.lld %t.o -T %s -o /dev/null 2>&1 | FileCheck %s
9
10# CHECK: error: assignment to symbol a does not converge
11
12SECTIONS {
13  . = 0x1000;
14  a = b;
15  b = c;
16  c = d;
17  d = e;
18  e = f;
19  f = .;
20}
21