OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [conv4.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.