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
/
Wnonnull-compare-4.C
blob
851ed72654e4340b6fce6b7adb0116a6b514cad4
1
// PR c++/69850
2
// { dg-do compile }
3
// { dg-options "-Wnonnull-compare" }
4
5
struct A { virtual ~A (); int foo (); };
6
struct B { virtual ~B () { } };
7
struct C : B, A { };
8
9
int
10
A::foo ()
11
{
12
C *c = dynamic_cast<C *> (this); // { dg-bogus "nonnull argument" }
13
return !c;
14
}