rt_gccstream/gcc/testsuite/g++.old-deja/g++.other/align.C

16 lines
224 B
C

// { dg-do assemble }
#include <string.h>
class bar {
public:
bar() { rw = 0; }
static const bar baz;
private:
unsigned char rw;
};
char buf[4096];
void foo(char *uc)
{
memcpy(buf,&bar::baz,sizeof(bar));
}