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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
union6.C
blob
408755e3195bc163402bdbc0e7a72826cbf7c52a
1
// PR c++/60184
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
union Test3 {
15
int& kConstant; // { dg-error "may not have reference type" }
16
};
17
18
union Test4 {
19
const int& kConstant = 10; // { dg-error "may not have reference type" }
20
};