diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-06-22 01:01:41 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-06-21 23:01:41 +0000 |
commit | 4da27d0fc736fe157fea192eac0f6ba833ee7920 (patch) | |
tree | e013ea2eebf88bcf14bca2a72d8347dc85e3883f | |
parent | 476571534dbb65a017e930fb0bd4c313d2d68417 (diff) | |
download | gcc-4da27d0fc736fe157fea192eac0f6ba833ee7920.zip gcc-4da27d0fc736fe157fea192eac0f6ba833ee7920.tar.gz gcc-4da27d0fc736fe157fea192eac0f6ba833ee7920.tar.bz2 |
localalias.c: Fix broken commit.
* gcc.dg/localalias.c: Fix broken commit.
* gcc.dg/globalalias.c: Likewise.
From-SVN: r211869
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/globalalias.c | 2 | ||||
-rw-r--r-- | 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 <hubicka@ucw.cz> + * gcc.dg/localalias.c: Fix broken commit. + * gcc.dg/globalalias.c: Likewise. + +2014-06-20 Jan Hubicka <hubicka@ucw.cz> + * 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; } |