diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /test/Transforms/FunctionImport/unnamed-globals.ll | |
parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) |
Diffstat (limited to 'test/Transforms/FunctionImport/unnamed-globals.ll')
-rw-r--r-- | test/Transforms/FunctionImport/unnamed-globals.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/FunctionImport/unnamed-globals.ll b/test/Transforms/FunctionImport/unnamed-globals.ll new file mode 100644 index 000000000000..167fad28f439 --- /dev/null +++ b/test/Transforms/FunctionImport/unnamed-globals.ll @@ -0,0 +1,10 @@ +; Make sure we don't crash when referencing an unnamed global. +; RUN: opt %s -module-summary-analysis -S + +@0 = external global [1 x { i64 }] + +define internal void @tinkywinky() { + call void @patatino(i64 ptrtoint ([1 x { i64 }]* @0 to i64), i64 4) + ret void +} +declare void @patatino(i64, i64) |