blob: 3047b7f954efab2bb1dfaddcbc4a3410d68f0a52 [file] [log] [blame]
Eric Christophera11d1292011-07-26 00:57:50 +00001// RUN: %clang_cc1 -O1 -emit-llvm %s -o - | grep icmp
2// PR1678
3
4extern void B (void);
5static __typeof(B) A __attribute__ ((__weakref__("B")));
6int active (void)
7{
8 static void *const p = __extension__ (void *) &A;
9 return p != 0;
10}