~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/Assembler/aggregate-constant-values.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llvm-as < %s | llvm-dis | grep 7 | count 3
 
2
 
 
3
define void @foo({i32, i32}* %x) nounwind {
 
4
  store {i32, i32}{i32 7, i32 9}, {i32, i32}* %x
 
5
  ret void
 
6
}
 
7
define void @foo_empty({}* %x) nounwind {
 
8
  store {}{}, {}* %x
 
9
  ret void
 
10
}
 
11
define void @bar([2 x i32]* %x) nounwind {
 
12
  store [2 x i32][i32 7, i32 9], [2 x i32]* %x
 
13
  ret void
 
14
}
 
15
define void @bar_empty([0 x i32]* %x) nounwind {
 
16
  store [0 x i32][], [0 x i32]* %x
 
17
  ret void
 
18
}
 
19
define void @qux(<{i32, i32}>* %x) nounwind {
 
20
  store <{i32, i32}><{i32 7, i32 9}>, <{i32, i32}>* %x
 
21
  ret void
 
22
}
 
23
define void @qux_empty(<{}>* %x) nounwind {
 
24
  store <{}><{}>, <{}>* %x
 
25
  ret void
 
26
}
 
27