From 4da27d0fc736fe157fea192eac0f6ba833ee7920 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 22 Jun 2014 01:01:41 +0200 Subject: localalias.c: Fix broken commit. * gcc.dg/localalias.c: Fix broken commit. * gcc.dg/globalalias.c: Likewise. From-SVN: r211869 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/globalalias.c | 2 +- gcc/testsuite/gcc.dg/localalias.c | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d1a798a..0b45987 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2014-06-20 Jan Hubicka + * gcc.dg/localalias.c: Fix broken commit. + * gcc.dg/globalalias.c: Likewise. + +2014-06-20 Jan Hubicka + * gcc.dg/localalias.c: New testcase. * gcc.dg/localalias-2.c: New testcase. * gcc.dg/globalalias.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/globalalias.c b/gcc/testsuite/gcc.dg/globalalias.c index eaca713..0a7cf7a 100644 --- a/gcc/testsuite/gcc.dg/globalalias.c +++ b/gcc/testsuite/gcc.dg/globalalias.c @@ -22,7 +22,7 @@ __attribute__ ((weak,noinline)) __attribute ((alias("test"))) void test2(void); -void main() +int main() { test(); /* This call must bind locally. */ diff --git a/gcc/testsuite/gcc.dg/localalias.c b/gcc/testsuite/gcc.dg/localalias.c index 3391c3a..4875283 100644 --- a/gcc/testsuite/gcc.dg/localalias.c +++ b/gcc/testsuite/gcc.dg/localalias.c @@ -22,7 +22,7 @@ void test(void) __attribute ((alias("test"))) static void test2(void); -void main() +int main() { test2(); /* This call must bind locally. */ @@ -38,5 +38,5 @@ void main() if ((testcount != 1 || test2count != 3) && (testcount != 3 || test2count != 1)) abort (); - reutrn 0; + return 0; } -- cgit v1.1