summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr18479.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-29 23:11:30 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-29 23:11:30 +0000
commite147aab329156bde4602c7df248cdd0e66f16fb3 (patch)
tree8c3481e8e9d2fd6644e0eecf3646b6d06ab92e0b /gcc/testsuite/gcc.dg/pr18479.c
parent79e967528ab05af081fd3a632eb97131d1a3356e (diff)
downloadgcc-e147aab329156bde4602c7df248cdd0e66f16fb3.tar.gz
2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
PR c/18479 * gcc.dg/pr18479.c: New test. 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu> PR c/18479 * c-common.c (handle_visibility_attribute): When the type decl is really a identifier node, warn about being ignored and return. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91492 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr18479.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr18479.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr18479.c b/gcc/testsuite/gcc.dg/pr18479.c
new file mode 100644
index 00000000000..493574e8a9f
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr18479.c
@@ -0,0 +1,3 @@
+/* { dg-do compile } */
+/* { dg-options "" } */
+struct __attribute__ ((visibility("default"))) Foo { int foo; }; /* { dg-warning "attribute ignored on types" } */