+2001-01-08 Jonathan Larmour <jlarmour@redhat.com>
+
+ * gcc.dg/20000419-2.c: Move to "special" subdirectory.
+ * gcc.dg/special/20000419-2.c: New file. Identical to above.
+ * gcc.dg/special/special.exp: New test driver which will check
+ for alias support for the above test.
+
2001-01-09 Alan Lehotsky <lehotsky@tiac.net>
* gcc.c-torture/execute/921202-1.c: Use STACK_SIZE to avoid
+++ /dev/null
-/* A static function with a global alias should not get 'defined but
- not used' warnings. Exposed by Linux kernel. */
-/* { dg-do compile } */
-/* { dg-options "-Wall" } */
-
-extern void do_something (void);
-extern void do_something_else (void);
-
-static int
-init_foobar(void) /* { dg-bogus "defined but not used" "not used warning" } */
-{
- do_something();
- do_something_else();
- return 0;
-}
-
-int init_module(void) __attribute__((alias("init_foobar")));
--- /dev/null
+/* A static function with a global alias should not get 'defined but
+ not used' warnings. Exposed by Linux kernel. */
+/* { dg-do compile } */
+/* { dg-options "-Wall" } */
+
+extern void do_something (void);
+extern void do_something_else (void);
+
+static int
+init_foobar(void) /* { dg-bogus "defined but not used" "not used warning" } */
+{
+ do_something();
+ do_something_else();
+ return 0;
+}
+
+int init_module(void) __attribute__((alias("init_foobar")));
--- /dev/null
+# Copyright (C) 2001 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+# Please email any bugs, comments, and/or additions to this file to:
+# jlarmour@redhat.com
+
+# This file was written by Jonathan Larmour (jlarmour@redhat.com).
+
+# GCC testsuite that uses the `dg.exp' driver.
+
+# Load support procs.
+load_lib gcc-dg.exp
+
+##############
+# 20000419-2.c
+##############
+
+dg-init
+switch [check_alias_available "$srcdir/$subdir/20000419-2.c"] {
+ yes { dg-runtest "$srcdir/$subdir/20000419-2.c" "" "" }
+ no { unsupported "20000419-2.c" }
+ default { fail "20000419-2.c" }
+}
+dg-finish
+
+
+### EOF special.exp