1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm < %s | grep 'extern_weak' | count 1 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc struct S; 4*f4a2713aSLionel Sambuc void __attribute__((weak)) foo1(struct S); 5*f4a2713aSLionel Sambuc void (*foo2)(struct S) = foo1; 6