2012-03-09 13:27:43 +08:00
|
|
|
# RUN: lld-core %s 2>&1 | FileCheck %s
|
2011-12-22 10:38:01 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test that multiple definitions cause an error
|
|
|
|
#
|
|
|
|
|
2012-03-09 13:27:43 +08:00
|
|
|
# CHECK: duplicate symbol
|
|
|
|
|
2011-12-22 10:38:01 +08:00
|
|
|
---
|
|
|
|
atoms:
|
|
|
|
- name: _foo
|
|
|
|
definition: regular
|
2012-01-05 07:58:17 +08:00
|
|
|
scope: global
|
2011-12-22 10:38:01 +08:00
|
|
|
type: data
|
|
|
|
---
|
|
|
|
atoms:
|
|
|
|
- name: _foo
|
|
|
|
definition: regular
|
2012-01-05 07:58:17 +08:00
|
|
|
scope: global
|
2011-12-22 10:38:01 +08:00
|
|
|
type: data
|
|
|
|
...
|