summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-14 07:31:39 +0000
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-14 07:31:39 +0000
commitb2d59339d542c858cce13c5e9a290c67dcf59b21 (patch)
tree60bdd906e4120e4b29aad3877db0d4d5ece2fdeb
parentc3a5d13a8683358eb74a2c369a4783da02c0a253 (diff)
downloadppe42-gcc-b2d59339d542c858cce13c5e9a290c67dcf59b21.tar.gz
ppe42-gcc-b2d59339d542c858cce13c5e9a290c67dcf59b21.zip
* g++.dg/ext/attrib9.C: Add dg-warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75847 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/ext/attrib9.C8
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6bec6b4c0c8..5c3c302c7e9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-01-14 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * g++.dg/ext/attrib9.C: Add dg-warnings.
+
2004-01-14 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/12335
diff --git a/gcc/testsuite/g++.dg/ext/attrib9.C b/gcc/testsuite/g++.dg/ext/attrib9.C
index ee6fdb1d375..d01fc12b675 100644
--- a/gcc/testsuite/g++.dg/ext/attrib9.C
+++ b/gcc/testsuite/g++.dg/ext/attrib9.C
@@ -1,5 +1,5 @@
-class __attribute__((unused)) C;
-struct __attribute__((unused)) S;
-union __attribute__((unused)) U;
+class __attribute__((unused)) C; // { dg-warning "type attributes" }
+struct __attribute__((unused)) S; // { dg-warning "type attributes" }
+union __attribute__((unused)) U; // { dg-warning "type attributes" }
enum e {};
-enum __attribute__((unused)) e;
+enum __attribute__((unused)) e; // { dg-warning "type attributes" }
OpenPOWER on IntegriCloud