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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-Wall" }
3
 
4
extern int f2(int);
5
extern void f3();
6
void
7
f1(int i)
8
{
9
  if (1 == 1 || f2(i >> -10))
10
    f3();
11
  if (1 == 1 || f2(i >> 128))
12
    f3();
13
  if (1 == 1 || f2(i << -10))
14
    f3();
15
  if (1 == 1 || f2(i << 128))
16
    f3();
17
  if (1 == 1 || i < 0xffffffff)
18
    f3();
19
  if (1 == 1 || i >= -0x80000000)
20
    f3();
21
  if (1 == 0 && f2(i >> -10))
22
    f3();
23
  if (1 == 0 && f2(i >> 128))
24
    f3();
25
  if (1 == 0 && f2(i << -10))
26
    f3();
27
  if (1 == 0 && f2(i << 128))
28
    f3();
29
  if (1 == 0 && i < 0xffffffff)
30
    f3();
31
  if (1 == 0 && i >= -0x80000000)
32
    f3();
33
  if (1 == 1 && f2(i >> -10))   /* { dg-warning "shift count is negative" } */
34
    f3();
35
  if (1 == 0 || f2(i << -10))   /* { dg-warning "shift count is negative" } */
36
    f3();
37
}

powered by: WebSVN 2.1.0

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