blob: 8af996c2bc8487d62a6ef659810b9e8c61e1d8ba [file] [log] [blame]
Chris Lattner8408d0b2004-11-13 22:21:15 +00001; The CBE should not emit code that casts the function pointer. This causes
2; GCC to get testy and insert trap instructions instead of doing the right
3; thing. :(
Chris Lattnerc98deeb2006-05-24 20:52:08 +00004; RUN: llvm-as < %s | llc -march=c
Chris Lattner8408d0b2004-11-13 22:21:15 +00005
6implementation
7
8declare void %external(sbyte*)
9
10int %test(int *%X) {
11 %RV = call int (int*)* cast (void(sbyte*)* %external to int(int*)*)(int* %X)
12 ret int %RV
13}
14
15
16
17