URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [code-gen4.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do run }
// GROUPS passed code-generation
// code-gen file
// From: david.binderman@pmsr.philips.co.uk
// Date: Tue, 17 Aug 93 10:09:38 BST
// Subject: .* broken in 2.4.5
// Message-ID: <9308170909.AA05509@pmsr.philips.co.uk>
class A {
public:
char c;
};
typedef char A::*PMA;
PMA pmA = &A::c;
A oA;
extern "C" int printf( const char *, ...);
int main()
{
oA.c = 'q';
if ( (oA .* pmA))
printf( "PASS\n");
else
printf(" FAIL\n");
}