blob: 3cdd47e4e08241b997129e77a8c790bb5ebf186e [file] [log] [blame]
Duncan Sands437c27c2007-09-19 07:43:17 +00001// RUN: %llvmgcc -O1 -S %s -o - | grep icmp
2// PR1678
Tanya Lattner06611df2007-09-24 17:14:53 +00003// XFAIL: llvmgcc4.0.1
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}