[lld] Fix broken test. -layout-pass option does not exist.

Also shuffle the atoms so that it can verify the layout pass
actually changed the layout.

llvm-svn: 181573
This commit is contained in:
Rui Ueyama 2013-05-10 00:50:33 +00:00
parent 674eaa2c88
commit eb6b6e4857
1 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,15 @@
# RUN: lld -core -layout-pass=true %s | FileCheck %s -check-prefix=CHKORDER
# RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER
---
defined-atoms:
- name: fn3
scope: global
- name: fn2
scope: global
references:
- kind: layout-after
offset: 0
target: fn3
- name: fn
scope: global
references:
@ -14,14 +22,6 @@ defined-atoms:
- kind: layout-after
offset: 0
target: fn2
- name: fn2
scope: global
references:
- kind: layout-after
offset: 0
target: fn3
- name: fn3
scope: global
...
# CHKORDER: - name: fn