Error if we see an alias to a declaration.
[oota-llvm.git] / test / CodeGen / X86 / 2007-09-06-ExtWeakAliasee.ll
1 ; RUN: llc < %s -march=x86 | grep weak | count 2
2 @__gthrw_pthread_once = alias weak i32 (i32*, void ()*)* @pthread_once          ; <i32 (i32*, void ()*)*> [#uses=0]
3
4 define weak i32 @pthread_once(i32*, void ()*) {
5   ret i32 0
6 }