diff options
| -rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr61159.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8766abb..2ec3a24 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2016-08-09 Jan Hubicka <hubicka@ucw.cz> + PR ipa/61159 + * compile/pr61159.c: New testcase + +2016-08-09 Jan Hubicka <hubicka@ucw.cz> + PR ipa/64316 * gcc.dg/ipa/pr63416.c: New testcase. diff --git a/gcc/testsuite/gcc.c-torture/compile/pr61159.c b/gcc/testsuite/gcc.c-torture/compile/pr61159.c new file mode 100644 index 0000000..5afa6ea --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr61159.c @@ -0,0 +1,7 @@ +/* { dg-require-alias "" } */ +/* { dg-require-weak "" } */ + +static int dummy = 0; +extern int foo __attribute__((__weak__, __alias__("dummy"))); +typedef char check[2*!__builtin_constant_p(dummy)-1]; +typedef char check[2*!__builtin_constant_p(foo)-1]; |
