Commit 4da27d0f by Jan Hubicka Committed by Jan Hubicka

localalias.c: Fix broken commit.


	* gcc.dg/localalias.c: Fix broken commit.
	* gcc.dg/globalalias.c: Likewise.

From-SVN: r211869
parent 47657153
2014-06-20 Jan Hubicka <hubicka@ucw.cz> 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.c: New testcase.
* gcc.dg/localalias-2.c: New testcase. * gcc.dg/localalias-2.c: New testcase.
* gcc.dg/globalalias.c: New testcase. * gcc.dg/globalalias.c: New testcase.
......
...@@ -22,7 +22,7 @@ __attribute__ ((weak,noinline)) ...@@ -22,7 +22,7 @@ __attribute__ ((weak,noinline))
__attribute ((alias("test"))) __attribute ((alias("test")))
void test2(void); void test2(void);
void main() int main()
{ {
test(); test();
/* This call must bind locally. */ /* This call must bind locally. */
......
...@@ -22,7 +22,7 @@ void test(void) ...@@ -22,7 +22,7 @@ void test(void)
__attribute ((alias("test"))) __attribute ((alias("test")))
static void test2(void); static void test2(void);
void main() int main()
{ {
test2(); test2();
/* This call must bind locally. */ /* This call must bind locally. */
...@@ -38,5 +38,5 @@ void main() ...@@ -38,5 +38,5 @@ void main()
if ((testcount != 1 || test2count != 3) if ((testcount != 1 || test2count != 3)
&& (testcount != 3 || test2count != 1)) && (testcount != 3 || test2count != 1))
abort (); abort ();
reutrn 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment