~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/Assembler/anon-functions.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
 
2
; RUN: verify-uselistorder %s
 
3
; PR3611
 
4
 
 
5
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
 
6
target triple = "x86_64-unknown-linux-gnu"
 
7
 
 
8
@f = alias void ()* @0          ; <void ()*> [#uses=0]
 
9
@g = alias void ()* @1          ; <void ()*> [#uses=0]
 
10
@h = external global void ()*           ; <void ()*> [#uses=0]
 
11
 
 
12
define internal void @0() nounwind {
 
13
entry:
 
14
  store void()* @0, void()** @h
 
15
        br label %return
 
16
 
 
17
return:         ; preds = %entry
 
18
        ret void
 
19
}
 
20
 
 
21
define internal void @1() nounwind {
 
22
entry:
 
23
        br label %return
 
24
 
 
25
return:         ; preds = %entry
 
26
        ret void
 
27
}