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
/
Wunused-var-29.C
blob
24eeb958f4a903039a6ea22b6cec876c8c424f3d
1
// PR c++/83690
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wunused-but-set-variable" }
4
5
void
6
foo ()
7
{
8
constexpr bool foo = true; // { dg-bogus "set but not used" }
9
static_assert (foo, "foo");
10
}