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