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