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:
Jan Hubicka 2016-09-11 14:15:02 +02:00 committed by Jan Hubicka
parent e3912107f8
commit a1cd04ace8
2 changed files with 12 additions and 0 deletions

View File

@ -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

View 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];