repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git]
/
test
/
Transforms
/
MergeFunc
/
fold-weak.ll
blob
e12473125c785966f3bf775b4dd7dc8c572355fb
1
; RUN: opt < %s -mergefunc -S > %t
2
; RUN: grep {define weak} %t | count 2
3
; RUN: grep {call} %t | count 2
4
5
define weak i32 @sum(i32 %x, i32 %y) {
6
%sum = add i32 %x, %y
7
ret i32 %sum
8
}
9
10
define weak i32 @add(i32 %x, i32 %y) {
11
%sum = add i32 %x, %y
12
ret i32 %sum
13
}