From 164bb913f21ae434130f9cc149785768feea2644 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Thu, 8 Sep 2011 21:46:14 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/attr-invalid.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9144ee4cf07..1d77d7b383d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -14,6 +14,10 @@ 2011-09-08 Dodji Seketeli + 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. diff --git a/gcc/testsuite/gcc.dg/attr-invalid.c b/gcc/testsuite/gcc.dg/attr-invalid.c index 6568c1ab294..f2a5887a721 100644 --- a/gcc/testsuite/gcc.dg/attr-invalid.c +++ b/gcc/testsuite/gcc.dg/attr-invalid.c @@ -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" "" } */ -- 2.30.2