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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [expr/] [compound-asn1.C] - Blame information for rev 754

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/45437
2
// { dg-options -Wsequence-point }
3
// { dg-do run }
4
 
5
bool f(bool& b) {
6
  b = true;
7
  return false;
8
}
9
 
10
int main() {
11
  bool b = false;
12
  b |= f(b);
13
  if (!b)
14
    return 1;
15
}

powered by: WebSVN 2.1.0

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