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 c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr65327.C
blob
c6cefaba69219710124b0f81748a5595c237b3d2
1
// PR c++/65327
2
// { dg-do compile { target c++11 } }
3
// DR1688 says that constexpr can be used together with volatile.
4
5
constexpr volatile int i = 10;
6
7
void
8
foo ()
9
{
10
constexpr volatile int j = 5;
11
static constexpr volatile int k = 5;
12
}
13
14
constexpr volatile int
15
bar ()
16
{
17
return i;
18
}