repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
union8.C
blob
11b9656f7450d7af11151706a300ee7e98c2c0ce
1
// PR c++/78890
2
// { dg-do compile { target c++11 } }
3
4
union Test1 {
5
static int kConstant;
6
};
7
8
union Test2 {
9
static const int kConstant;
10
};
11
12
const int Test2::kConstant = 10;
13
14
int k;
15
16
union Test3 {
17
static int& kRef;
18
};
19
20
int& Test3::kRef = k;
21
22
union Test4 {
23
static const int& kRef;
24
};
25
26
const int& Test4::kRef = 10;