repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
parse
/
constant5.C
blob
db11afb51b255f4107be3548a82742f151d043c2
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
};