diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2016-09-11 14:15:02 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2016-09-11 12:15:02 +0000 |
commit | a1cd04ace88932053e171a2df5d1c7f41329a851 (patch) | |
tree | 4d0bdc1e3e730fb0c3623479f894036c4ff95322 /gcc/testsuite/gcc.c-torture | |
parent | e3912107f880de67f5f593212490a957d95801bb (diff) | |
download | gcc-a1cd04ace88932053e171a2df5d1c7f41329a851.zip gcc-a1cd04ace88932053e171a2df5d1c7f41329a851.tar.gz gcc-a1cd04ace88932053e171a2df5d1c7f41329a851.tar.bz2 |
re PR ipa/61159 (__builtin_constant_p gives incorrect results with aliases)
PR ipa/61159
* compile/pr61159.c: New testcase
From-SVN: r240082
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr61159.c | 7 |
1 files changed, 7 insertions, 0 deletions
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]; |