Dan Gohman | 8c89a50 | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=i686-apple-darwin | grep weak_reference | count 2 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 2 | |
3 | %Y = global int (sbyte*)* %X | ||||
4 | declare extern_weak int %X(sbyte*) | ||||
5 | |||||
6 | void %bar() { | ||||
7 | tail call void (...)* %foo( ) | ||||
8 | ret void | ||||
9 | } | ||||
10 | |||||
11 | declare extern_weak void %foo(...) |