diff options
Diffstat (limited to 'test/Feature/aliases.ll')
-rw-r--r-- | test/Feature/aliases.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Feature/aliases.ll b/test/Feature/aliases.ll index 139381215e..7ffa5f2601 100644 --- a/test/Feature/aliases.ll +++ b/test/Feature/aliases.ll @@ -4,14 +4,16 @@ @llvm.used = appending global [1 x i8*] [i8* bitcast (i32* @foo1 to i8*)], section "llvm.metadata" -@bar = external global i32 +@bar = global i32 0 @foo1 = alias i32* @bar @foo2 = alias i32* @bar @foo3 = alias i32* @foo2 %FunTy = type i32() -declare i32 @foo_f() +define i32 @foo_f() { + ret i32 0 +} @bar_f = alias weak %FunTy* @foo_f @bar_ff = alias i32()* @bar_f |