re PR middle-end/50079 (FAIL: g++.dg/init/copy7.C execution test)
2011-11-03 Richard Guenther <rguenther@suse.de> PR middle-end/50079 * g++.dg/init/copy7.C: Remove testcase. From-SVN: r180829
This commit is contained in:
parent
2acb1a01e1
commit
1c4678c1c9
@ -1,3 +1,8 @@
|
||||
2011-11-03 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/50079
|
||||
* g++.dg/init/copy7.C: Remove testcase.
|
||||
|
||||
2011-11-03 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
* g++.dg/ipa/devirt-c-1.C: Add dump scans.
|
||||
|
@ -1,39 +0,0 @@
|
||||
// PR c++/39480
|
||||
// It isn't always safe to call memcpy with identical arguments.
|
||||
// { dg-do run }
|
||||
|
||||
extern "C" void abort();
|
||||
extern "C" void *
|
||||
memcpy(void *dest, void *src, __SIZE_TYPE__ n)
|
||||
{
|
||||
if (dest == src)
|
||||
abort();
|
||||
else
|
||||
{
|
||||
__SIZE_TYPE__ i;
|
||||
for (i = 0; i < n; i++)
|
||||
((char *)dest)[i] = ((const char*)src)[i];
|
||||
}
|
||||
}
|
||||
|
||||
struct A
|
||||
{
|
||||
double d[10];
|
||||
};
|
||||
|
||||
struct B: public A
|
||||
{
|
||||
char bc;
|
||||
};
|
||||
|
||||
B b;
|
||||
|
||||
void f(B *a1, B* a2)
|
||||
{
|
||||
*a1 = *a2;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
f(&b,&b);
|
||||
}
|
Loading…
Reference in New Issue
Block a user