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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [pr51992_0.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/51992
2
// { dg-lto-do assemble }
3
 
4
template
5
class QFlags
6
{
7
    int i;
8
    inline QFlags(Enum f) : i(f) {}
9
};
10
class QString {};
11
class KComponentData;
12
class KConfig
13
{
14
public:
15
    enum OpenFlag {
16
        IncludeGlobals = 0x01,
17
        CascadeConfig = 0x02,
18
        FullConfig = IncludeGlobals|CascadeConfig
19
    };
20
    typedef QFlags OpenFlags;
21
};
22
template 
23
class KSharedPtr {};
24
class KSharedConfig : public KConfig
25
{
26
public:
27
  typedef KSharedPtr Ptr;
28
    static KSharedConfig::Ptr openConfig(const QString& fileName = QString(),
29
                                         OpenFlags mode = FullConfig,
30
                                         const char *resourceType = "config");
31
    static KSharedConfig::Ptr openConfig(const KComponentData &componentData,
32
                                         const QString &fileName = QString(),
33
                                         OpenFlags mode = FullConfig,
34
                                         const char *resourceType = "config");
35
};
36
typedef KSharedConfig::Ptr KSharedConfigPtr;
37
namespace KGlobal
38
{
39
    KComponentData &mainComponent();
40
};
41
KSharedConfigPtr KSharedConfig::openConfig(const QString& fileName,
42
                                           OpenFlags flags,
43
                                           const char *resType)
44
{
45
    return openConfig(KGlobal::mainComponent(), fileName, flags, resType);
46
}
47
KSharedConfigPtr KSharedConfig::openConfig(const KComponentData &componentData,
48
                                           const QString& fileName,
49
                                           OpenFlags flags,
50
                                           const char *resType)
51
{
52
    return KSharedConfigPtr();
53
}

powered by: WebSVN 2.1.0

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