mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 21:01:29 +08:00
re PR tree-optimization/42890 (Crash in type_like_member_ptr_p in ipa-prop.c:382)
PR tree-optimization/42890 * g++.dg/torture/pr42890.C: New test. From-SVN: r156604
This commit is contained in:
parent
8d9eca14ae
commit
783b008c60
@ -1,3 +1,8 @@
|
||||
2010-02-08 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/42890
|
||||
* g++.dg/torture/pr42890.C: New test.
|
||||
|
||||
2010-02-08 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/42995
|
||||
|
25
gcc/testsuite/g++.dg/torture/pr42890.C
Normal file
25
gcc/testsuite/g++.dg/torture/pr42890.C
Normal file
@ -0,0 +1,25 @@
|
||||
// PR tree-optimization/42890
|
||||
// { dg-do compile }
|
||||
|
||||
extern "C" int puts (const char *) throw ();
|
||||
|
||||
struct S
|
||||
{
|
||||
const char *a;
|
||||
const char **b;
|
||||
S (const char *s) { a = s; b = &a; }
|
||||
~S () { puts (a); }
|
||||
};
|
||||
|
||||
void
|
||||
foo (int (*fn) (const char *))
|
||||
{
|
||||
S a ("foo");
|
||||
fn ("bar");
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
foo (puts);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user