summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.old-deja/g++.other/align.C
blob: f5cc8508313b575b42f1ba9fb4a8b0eaad869cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:
#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));
}
OpenPOWER on IntegriCloud