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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR debug/41801
2
// { dg-do compile }
3
// { dg-options "-O2 -g" }
4
 
5
struct T
6
{
7
  void
8
  foo () volatile
9
  {
10
    __sync_lock_release (&t);
11
    __sync_synchronize ();
12
  }
13
  bool t;
14
};
15
 
16
int
17
main ()
18
{
19
  T t = { false };
20
  t.foo ();
21
}

powered by: WebSVN 2.1.0

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