blob: 6c420ea38a78d7955673201a526eafdb77a2e843 [file] [log] [blame]
Duncan Sands437c27c2007-09-19 07:43:17 +00001// RUN: %llvmgcc -O1 -S %s -o - | grep icmp
2// PR1678
Daniel Dunbar3d4d01b2010-02-23 07:56:28 +00003
Duncan Sands437c27c2007-09-19 07:43:17 +00004extern 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}