diff options
| author | Duncan Sands <baldrick@free.fr> | 2007-09-19 07:43:17 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2007-09-19 07:43:17 +0000 |
| commit | 4e426623f531ceda3031d1bdd031f94dab9c910f (patch) | |
| tree | c1285cbdc63c3c0b9ad7c417d050d0c7a2ef1629 | |
| parent | 59155be0b23158f688c3b8bad6407ca2480764a4 (diff) | |
| download | bcm5719-llvm-4e426623f531ceda3031d1bdd031f94dab9c910f.tar.gz bcm5719-llvm-4e426623f531ceda3031d1bdd031f94dab9c910f.zip | |
Testcase for PR1678.
llvm-svn: 42128
| -rw-r--r-- | llvm/test/CFrontend/2007-09-17-WeakRef.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2007-09-17-WeakRef.c b/llvm/test/CFrontend/2007-09-17-WeakRef.c new file mode 100644 index 00000000000..6c420ea38a7 --- /dev/null +++ b/llvm/test/CFrontend/2007-09-17-WeakRef.c @@ -0,0 +1,10 @@ +// RUN: %llvmgcc -O1 -S %s -o - | grep icmp +// PR1678 + +extern void B (void); +static __typeof(B) A __attribute__ ((__weakref__("B"))); +int active (void) +{ + static void *const p = __extension__ (void *) &A; + return p != 0; +} |

