* g++.dg/ext/attrib10.C: Mark for warning.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Feb 2004 08:42:23 +0000 (08:42 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Feb 2004 08:42:23 +0000 (08:42 +0000)
        * gcc.dg/attr-alias-1.c: New.

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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attrib10.C
gcc/testsuite/gcc.dg/attr-alias-1.c [new file with mode: 0644]

index 0f4e64a..acc1d32 100644 (file)
@@ -1,5 +1,10 @@
 2004-02-26  Richard Henderson  <rth@redhat.com>
 
+        * g++.dg/ext/attrib10.C: Mark for warning.
+        * gcc.dg/attr-alias-1.c: New.
+
+2004-02-26  Richard Henderson  <rth@redhat.com>
+
        * gcc.c-torture/execute/ieee/20040208-2.c: Move ...
        * gcc.c-torture/execute/20040208-2.c: ... it back.
 
index 99459c7..42d967d 100644 (file)
@@ -3,6 +3,6 @@
 
 void foo()
 {
-  extern void bar () __attribute__ ((__alias__ ("BAR")));
+  extern void bar () __attribute__ ((__alias__ ("BAR"))); // { dg-warning "ignored" }
   bar ();
 }
diff --git a/gcc/testsuite/gcc.dg/attr-alias-1.c b/gcc/testsuite/gcc.dg/attr-alias-1.c
new file mode 100644 (file)
index 0000000..8f530a8
--- /dev/null
@@ -0,0 +1,8 @@
+/* PR c++/12795 */
+/* { dg-require-alias "" } */
+
+void foo()
+{
+  extern void bar () __attribute__ ((__alias__ ("BAR"))); /* { dg-warning "ignored" } */
+  bar ();
+}