Duncan Sands | dced0a3 | 2008-09-03 07:52:01 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -S -O1 -o - %s | grep icmp |
2 | // PR1678 | ||||
3 | extern void B (void); | ||||
4 | static __typeof(B) A __attribute__ ((__weakref__("B"))); | ||||
5 | int active (void) | ||||
6 | { | ||||
7 | static void *const p = __extension__ (void *) &A; | ||||
8 | return p != 0; | ||||
9 | } |