mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
New testcase for folding in some important situations. The first two
come up a lot in the code generated by the C++ front-end for pointers to member functions. See PR166. llvm-svn: 12217
This commit is contained in:
parent
23980d3a7c
commit
cf72011426
@ -0,0 +1,15 @@
|
||||
; RUN: llvm-as < %s | llvm-dis | not grep cast
|
||||
; All of these should be eliminable
|
||||
|
||||
|
||||
int %foo() {
|
||||
ret int and (int cast (int()* %foo to int), int 1)
|
||||
}
|
||||
|
||||
int %foo2() {
|
||||
ret int and (int 1, int cast (int()* %foo2 to int))
|
||||
}
|
||||
|
||||
bool %foo3() {
|
||||
ret bool cast (bool()* %foo3 to bool)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user