alias.ll 445 B

12345678910111213141516
  1. ; RUN: llvm-link %s %S/Inputs/alias.ll -S -o - | FileCheck %s
  2. ; RUN: llvm-link %S/Inputs/alias.ll %s -S -o - | FileCheck %s
  3. @foo = weak global i32 0
  4. ; CHECK-DAG: @foo = alias i32* @zed
  5. @bar = alias i32* @foo
  6. ; CHECK-DAG: @bar = alias i32* @foo
  7. @foo2 = weak global i32 0
  8. ; CHECK-DAG: @foo2 = alias bitcast (i32* @zed to i16*)
  9. @bar2 = alias i32* @foo2
  10. ; CHECK-DAG: @bar2 = alias bitcast (i16* @foo2 to i32*)
  11. ; CHECK-DAG: @zed = global i32 42