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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [pr47746.C] - Blame information for rev 701

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 "-fgnu-tm" }
3
 
4
class InputStream
5
{
6
        public:
7
        virtual unsigned int readUint32 () = 0;
8
};
9
 
10
class Building
11
{
12
        public:
13
        __attribute__((transaction_safe)) Building (InputStream *stream);
14
        __attribute__((transaction_safe)) void freeGradients ();
15
        void load (InputStream *stream);
16
};
17
 
18
Building::Building (InputStream *stream)
19
{
20
        load(stream);
21
}
22
 
23
void Building::load (InputStream *stream)
24
{
25
        int j = (int)stream->readUint32 ();
26
        freeGradients ();
27
}

powered by: WebSVN 2.1.0

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