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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
const6.C
blob
1a5c79bb173e73b8f47af9d5576cddb270fa76ed
1
// PR target/39179
2
// Make sure that we don't optimize away the load from K::k.
3
// { dg-options "-O2" }
4
// { dg-final { scan-assembler _ZN1K1kE } }
5
6
struct K {
7
static const unsigned k;
8
};
9
extern "C" void abort (void);
10
int main() {
11
if ( K::k != 1 )
12
abort ();
13
return 1;
14
}