blob: 2e5f3dae8a00f78b75857c64669133be03931b80 [file] [log] [blame]
Duncan Sandsdced0a32008-09-03 07:52:01 +00001// RUN: %llvmgcc -S -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}