mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-14 04:59:55 +08:00
p11116.C
From-SVN: r32224
This commit is contained in:
parent
9fe94fd397
commit
43931371e2
@ -2,6 +2,12 @@
|
||||
// Special g++ Options: -Wno-pmf-conversions
|
||||
// prms-id: 11116
|
||||
|
||||
#if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100
|
||||
// This test tests the rather strange property afforded one by G++ to
|
||||
// peek inside a pointer-to-member, as if it were a structure. We
|
||||
// probably shouldn't allow that. In any case, under the new ABI,
|
||||
// the fields don't have the same names.
|
||||
#else
|
||||
class Bar {
|
||||
public:
|
||||
int f(int a) { val = a; return val; }
|
||||
@ -20,3 +26,4 @@ void foo() {
|
||||
p = (int (*)(void*,int))((void (*)())((bp).__pfn_or_delta2.__pfn));
|
||||
a = (*p)(&bar, 4);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user