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
PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wuninitialized-8.C
blob
cb9cfee6cabc3a8e1a3551a31838a726e1086a2a
1
// { dg-do compile }
2
// { dg-options "-Wuninitialized" }
3
4
struct A;
5
struct B
6
{
7
B(A);
8
};
9
struct C
10
{
11
template <typename PassT> void m_fn1(PassT p1) { new B(p1); } // { dg-bogus "uninitialized" }
12
};
13
struct A {};
14
void fn1()
15
{
16
C a;
17
a.m_fn1(A());
18
}