repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr78268.C
blob
8458c20d4179c4a34db4e1d720623ca9652bd78c
1
// { dg-do compile }
2
// { dg-additional-options "-Wno-return-type" }
3
4
typedef enum {} nsresult;
5
6
struct A {
7
virtual nsresult m_fn1(bool);
8
};
9
10
struct B {
11
A *operator[](int);
12
};
13
14
struct C {
15
nsresult m_fn2(bool);
16
bool m_fn3(bool);
17
B mDataSources;
18
};
19
nsresult C::m_fn2(bool p1)
20
{
21
m_fn3(!p1);
22
}
23
24
bool C::m_fn3(bool p1)
25
{
26
mDataSources[0]->m_fn1(p1);
27
}