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