Commit 0f6176e6 by Jan Hubicka Committed by Jan Hubicka

* gcc.c-torture/execute/alias-4.c: New testcase.

From-SVN: r232411
parent 824ca15e
2016-01-15 Jan Hubicka <hubicka@ucw.cz>
* gcc.c-torture/execute/alias-4.c: New testcase.
2016-01-15 Jan Hubicka <hubicka@ucw.cz>
PR ipa/68148
* g++.dg/ipa/devirt-49.C: New testcase.
......
/* { dg-require-alias "" } */
int a = 1;
extern int b __attribute__ ((alias ("a")));
int c = 1;
extern int d __attribute__ ((alias ("c")));
main (int argc)
{
int *p;
int *q;
if (argc)
p = &a, q = &b;
else
p = &c, q = &d;
*p = 1;
*q = 2;
if (*p == 1)
__builtin_abort ();
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