OSDN Git Service

PR c/37645
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Sep 2008 05:09:29 +0000 (05:09 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Sep 2008 05:09:29 +0000 (05:09 +0000)
commit64a7bd81fc18617c7bcd98b5eed6d842518533df
treeb02577ee4e89f768c0114466de99d6a7f83a9969
parent36d2792f22664bab9d29254b8a5b55e14c3bdec4
PR c/37645
* c-common.c (handle_weakref_attribute): Ignore the attribute unless
the decl is a VAR_DECL or FUNCTION_DECL.

* gcc.dg/pr37645.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140680 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr37645.c [new file with mode: 0644]