attrib10.C: Mark for warning.
authorRichard Henderson <rth@redhat.com>
Fri, 27 Feb 2004 08:42:23 +0000 (00:42 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 27 Feb 2004 08:42:23 +0000 (00:42 -0800)
        * g++.dg/ext/attrib10.C: Mark for warning.
        * gcc.dg/attr-alias-1.c: New.

From-SVN: r78560

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

index 0f4e64aad6b81f9f741d9da4b867b594ab1a1529..acc1d32162d68b1c2a977909fe5d768b31a4d754 100644 (file)
@@ -1,3 +1,8 @@
+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 ...
index 99459c78242ad3d1e5bd9ce79eb1fb1fd19c178d..42d967dde60ed49965a410b6a2cde081e8786700 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 ();
+}