Commit 164bb913 by Dodji Seketeli Committed by Dodji Seketeli

re PR c/50332 (FAIL: gcc.dg/attr-invalid.c)

Fix PR c/50332

gcc/testsuite/

	* gcc.dg/attr-invalid.c: Adjust as __attribute__((used) is no
	longer ignored on typedefs.

From-SVN: r178712
parent 416de7d5
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
2011-09-08 Dodji Seketeli <dodji@redhat.com> 2011-09-08 Dodji Seketeli <dodji@redhat.com>
PR c/50332
* gcc.dg/attr-invalid.c: Adjust as __attribute__((used) is no
longer ignored on typedefs.
PR c++/33255 - Support -Wunused-local-typedefs warning PR c++/33255 - Support -Wunused-local-typedefs warning
* g++.dg/warn/Wunused-local-typedefs.C: New test file. * g++.dg/warn/Wunused-local-typedefs.C: New test file.
* c-c++-common/Wunused-local-typedefs.c: Likewise. * c-c++-common/Wunused-local-typedefs.c: Likewise.
......
...@@ -35,9 +35,11 @@ int ATSYM(fn_vars) (void) { ...@@ -35,9 +35,11 @@ int ATSYM(fn_vars) (void) {
#undef AT #undef AT
#define AT used #define AT used
typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */ typedef int ATSYM(type) ATTR; /* used attribute is no longer
ignored. */
typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */ typedef int (*ATSYM(fntype))(void) ATTR; /* used attribute is no
longer ignored. */
struct ATSYM(struct) { struct ATSYM(struct) {
char dummy ATTR; /* { dg-warning "attribute ignored" "" } */ char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment