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
i386: Utilize VCOMSBF16 for BF16 Comparisons with AVX10.2
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-20.C
blob
792c25369c740b765d5ef9b0f95df6c239b534b6
1
// PR c++/38958
2
// { dg-options "-Wunused" }
3
4
volatile int g;
5
6
struct Lock
7
{
8
~Lock() { g = 0; }
9
};
10
11
Lock AcquireLock() { return Lock(); }
12
13
int main()
14
{
15
const Lock& lock = AcquireLock();
16
g = 1;
17
g = 2;
18
g = 3;
19
}