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
This commit is contained in:
parent
86de112502
commit
a34779030e
3 changed files with 61 additions and 0 deletions
|
@ -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
|
||||
|
|
44
gcc/testsuite/g++.dg/cpp0x/constexpr-defarg2.C
Normal file
44
gcc/testsuite/g++.dg/cpp0x/constexpr-defarg2.C
Normal file
|
@ -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");
|
||||
}
|
9
gcc/testsuite/gcc.dg/debug/pr46409.c
Normal file
9
gcc/testsuite/gcc.dg/debug/pr46409.c
Normal file
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue