diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-11-11 00:33:56 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-11-11 00:33:56 +0100 |
commit | a34779030e763fc62e90f78cfc6d368a8c120fed (patch) | |
tree | 88517b96792c8dfbd6768452928a9f57a3c50bbd /gcc | |
parent | 86de112502bac8c0cf8ab771fa45346173b13c6e (diff) | |
download | gcc-a34779030e763fc62e90f78cfc6d368a8c120fed.zip gcc-a34779030e763fc62e90f78cfc6d368a8c120fed.tar.gz gcc-a34779030e763fc62e90f78cfc6d368a8c120fed.tar.bz2 |
re PR debug/46409 (ICE in propagate_rtx, at fwprop.c:688)
PR debug/46409
* gcc.dg/debug/pr46409.c: New test.
PR c++/46368
* g++.dg/cpp0x/constexpr-defarg2.C: New test.
From-SVN: r166574
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-defarg2.C | 44 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/debug/pr46409.c | 9 |
3 files changed, 61 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ff026a3..c506e33 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2010-11-10 Jakub Jelinek <jakub@redhat.com> + + PR debug/46409 + * gcc.dg/debug/pr46409.c: New test. + + PR c++/46368 + * g++.dg/cpp0x/constexpr-defarg2.C: New test. + 2010-11-10 Uros Bizjak <ubizjak@gmail.com> PR target/46419 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-defarg2.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-defarg2.C new file mode 100644 index 0000000..faa8a36 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-defarg2.C @@ -0,0 +1,44 @@ +// PR c++/46368 +// { dg-options "-std=c++0x" } + +class A; + +class B +{ + A foo (); + A bar (); +}; + +class C +{ +}; + +struct D +{ + D (C); +}; + +struct A : D +{ + A (const C & n) : D (n) {} +}; + +A baz (const char *, A = C ()); + +A +B::foo () +{ + try + { + baz ("foo"); + } + catch (...) + { + } +} + +A +B::bar () +{ + baz ("bar"); +} diff --git a/gcc/testsuite/gcc.dg/debug/pr46409.c b/gcc/testsuite/gcc.dg/debug/pr46409.c new file mode 100644 index 0000000..066cb67 --- /dev/null +++ b/gcc/testsuite/gcc.dg/debug/pr46409.c @@ -0,0 +1,9 @@ +/* PR debug/46409 */ +/* { dg-options "-g" } */ + +int +foo (int (*x) (unsigned long long), unsigned long long y) +{ + unsigned int z = x (y); + return 0; +} |