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
RISC-V: Fix factor in dwarf_poly_indeterminate_value [PR116305]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr64717-2.C
blob
3f10440735ff9ac83c69bda9b5659d54f6f223a2
1
// PR c++/64717
2
// { dg-do compile }
3
// { dg-options "-O2 -Wuninitialized -fsanitize=vptr" }
4
5
class ios {};
6
7
struct stringstream : virtual ios {
8
stringstream (char *);
9
~stringstream ();
10
};
11
12
struct string { char *c_str (); };
13
14
string make_str ();
15
16
void
17
bar ()
18
{
19
stringstream param (make_str ().c_str ()); // { dg-bogus "is used uninitialized" }
20
}