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
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
conv4.C
blob
a15ef8bf1905920c00e783819de8b59db1d5c82f
1
// { dg-do compile }
2
3
// This file should compile cleanly by default and not warn on the conversions.
4
int func1(int i)
5
{
6
return i;
7
}
8
9
int main()
10
{
11
float f;
12
long l;
13
unsigned long ul;
14
15
f = 1.5f;
16
17
l = f;
18
ul = -1;
19
func1(f);
20
21
return 0;
22
}