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
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunreachable-code-2.C
blob
d50f7fe57d7f06557db3922c6d90c0005cfdc83a
1
// PR c++/21228
2
/* { dg-options "-Wunreachable-code" } */
3
4
class testStringBase
5
{
6
public:
7
char *stringPtr;
8
};
9
10
class testString : public testStringBase
11
{
12
public:
13
testString();
14
};
15
16
testString::testString()
17
{
18
stringPtr = (char *) 9;
19
}
20
21
int main(int argc, char **argv) {
22
testString s;
23
}