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
/
warn
/
Wzero-as-null-pointer-constant-3.C
blob
ed54143a0274755a65dffc17baa0880d79797327
1
// PR c++/51290
2
// { dg-options "-Wzero-as-null-pointer-constant" }
3
4
class A { int a; };
5
6
class B { int b; };
7
8
class C : public A, public B
9
{
10
private:
11
static void foo (A *x)
12
{
13
C *y = static_cast<C *>(x);
14
(void) y;
15
}
16
17
static void bar (B *x)
18
{
19
C *y = static_cast<C *>(x);
20
(void) y;
21
}
22
};