repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
decl.c (create_array_type_for_decl): Add location_t parameter and use it.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p10849a.C
blob
96bb064b568d987a0d5d6d652fed7376d8f8a2ab
1
// { dg-do run }
2
// prms-id: 10849
3
4
struct A
5
{
6
int comm;
7
A(int i) : comm(i) { }
8
};
9
10
struct S1 { char c1; };
11
12
struct B : public S1, public A
13
{
14
B(int i) : A(i) { }
15
};
16
17
struct C : public A
18
{
19
C(int i) : A(i) { }
20
};
21
22
struct D : public B, public C
23
{
24
virtual int g() {
25
int D::*pmd = (int C::*)&C::comm;
26
return (this->*pmd) == 42;
27
}
28
D() : B(41), C(42) { }
29
} d;
30
31
int main() {
32
if (! d.g())
33
return 1;
34
}