diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:57:38 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:57:38 +0000 |
commit | 5a5c549fe9a3fef595297bd21d36bed8409dc37d (patch) | |
tree | a964c8f5ac85b7b641cac022c5f9bf4eed3d2b9b /test/mach-o/flat_namespace_undef_error.yaml | |
parent | fb911942f1434f3d1750f83f25f5e42c80e60638 (diff) | |
download | src-5a5c549fe9a3fef595297bd21d36bed8409dc37d.tar.gz src-5a5c549fe9a3fef595297bd21d36bed8409dc37d.zip |
Vendor import of lld trunk r256633:vendor/lld/lld-trunk-r256633
Notes
Notes:
svn path=/vendor/lld/dist/; revision=292934
svn path=/vendor/lld/lld-trunk-r256633/; revision=292935; tag=vendor/lld/lld-trunk-r256633
Diffstat (limited to 'test/mach-o/flat_namespace_undef_error.yaml')
-rw-r--r-- | test/mach-o/flat_namespace_undef_error.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/mach-o/flat_namespace_undef_error.yaml b/test/mach-o/flat_namespace_undef_error.yaml new file mode 100644 index 000000000000..904b9c776e59 --- /dev/null +++ b/test/mach-o/flat_namespace_undef_error.yaml @@ -0,0 +1,17 @@ +# RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -flat_namespace -undefined error %s -o %t %p/Inputs/libSystem.yaml 2>&1 | FileCheck %s + +--- !native +defined-atoms: + - name: _main + scope: global + content: [ E9, 00, 00, 00, 00 ] + alignment: 16 + references: + - kind: branch32 + offset: 1 + target: _bar +undefined-atoms: + - name: _bar + +# Make sure we error out for -flat_namespace -undefined error. +# CHECK: Undefined symbol: : _bar |