aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2004-01-14 07:31:39 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2004-01-14 07:31:39 +0000
commitd22c417920998fe96973c74e5068cff8f3a47811 (patch)
tree60bdd906e4120e4b29aad3877db0d4d5ece2fdeb /gcc
parente0fed25b88289fd378dd3613bd6f291fd2c299d8 (diff)
downloadgcc-d22c417920998fe96973c74e5068cff8f3a47811.zip
gcc-d22c417920998fe96973c74e5068cff8f3a47811.tar.gz
gcc-d22c417920998fe96973c74e5068cff8f3a47811.tar.bz2
* g++.dg/ext/attrib9.C: Add dg-warnings.
From-SVN: r75847
Diffstat (limited to 'gcc')
-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 6bec6b4..5c3c302 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 ee6fdb1d..d01fc12 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" }