re PR ipa/61159 (__builtin_constant_p gives incorrect results with aliases)
PR ipa/61159 * compile/pr61159.c: New testcase From-SVN: r240082
This commit is contained in:
parent
e3912107f8
commit
a1cd04ace8
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
7
gcc/testsuite/gcc.c-torture/compile/pr61159.c
Normal file
7
gcc/testsuite/gcc.c-torture/compile/pr61159.c
Normal file
|
@ -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];
|
Loading…
Add table
Reference in a new issue