diff options
Diffstat (limited to 'test/Linker/cycle.ll')
-rw-r--r-- | test/Linker/cycle.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Linker/cycle.ll b/test/Linker/cycle.ll new file mode 100644 index 0000000..7d9ad2d --- /dev/null +++ b/test/Linker/cycle.ll @@ -0,0 +1,7 @@ +; RUN: not llvm-link %s %S/Inputs/cycle.ll 2>&1 | FileCheck %s +; RUN: not llvm-link %S/Inputs/cycle.ll %s 2>&1 | FileCheck %s + +; CHECK: Linking these modules creates an alias cycle + +@foo = weak global i32 0 +@bar = alias i32* @foo |