Fix PR c/50332
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Sep 2011 21:46:14 +0000 (21:46 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Sep 2011 21:46:14 +0000 (21:46 +0000)
gcc/testsuite/

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178712 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-invalid.c

index 9144ee4..1d77d7b 100644 (file)
 
 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
        * g++.dg/warn/Wunused-local-typedefs.C: New test file.
        * c-c++-common/Wunused-local-typedefs.c: Likewise.
index 6568c1a..f2a5887 100644 (file)
@@ -35,9 +35,11 @@ int ATSYM(fn_vars) (void) {
 #undef AT
 #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) {
   char dummy ATTR; /* { dg-warning "attribute ignored" "" } */