xref: /llvm-project/clang/test/CodeGen/2007-09-17-WeakRef.c (revision e6051006ba15b9dd9d43b8f6d545c98d5d74ec6a)
1 // RUN: %clang_cc1 -O1 -emit-llvm %s -o - | grep icmp
2 // PR1678
3 
4 extern void B (void);
5 static __typeof(B) A __attribute__ ((__weakref__("B")));
active(void)6 int active (void)
7 {
8   static void *const p = __extension__ (void *) &A;
9   return p != 0;
10 }
11