OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* g++.dg/parse/attr-externally-visible-1.C: Likewise.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
constant5.C
1
enum E {
2
a = 24.2, // { dg-error "constant" }
3
b = (int)3.7,
4
c = int(4.2),
5
d = (int)(4.2 + 3.7), // { dg-error "constant" }
6
e = int(4.2 - 3.7), // { dg-error "constant" }
7
f = (int)17.25
8
};
9
10
struct S {
11
static const int i = (int)4.2;
12
int j[(int)4.2];
13
static const int k = static_cast<short>(3.7);
14
};