summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20101015-1_0.C
blob: a3b296ee04634c9dc9d6c4f71363ec8ebf01f5e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// { dg-lto-do assemble }

class DOMString { };
class DocumentImpl;
class NodeImpl {
public:
    static const DOMString&
    mapPrefix(const DOMString &prefix, const DOMString &namespaceURI, short nType);
    static DOMString getXmlnsURIString();
};
class DOM_Node {
public:
    enum NodeType { ATTRIBUTE_NODE = 2 };
};
class AttrImpl: public NodeImpl {
public:
    AttrImpl(DocumentImpl *ownerDocument, const DOMString &aName);
};
class AttrNSImpl: public AttrImpl {
    AttrNSImpl(DocumentImpl *ownerDoc,  const DOMString &namespaceURI, const DOMString &qualifiedName);
};
AttrNSImpl::AttrNSImpl(DocumentImpl *ownerDoc,
		       const DOMString &fNamespaceURI,
		       const DOMString &qualifiedName)
  : AttrImpl(ownerDoc, qualifiedName)
{
    DOMString xmlnsURI = NodeImpl::getXmlnsURIString();
    DOMString prefix;
    bool xmlnsAlone = false;
    const DOMString& URI = xmlnsAlone ? xmlnsURI : mapPrefix(prefix, fNamespaceURI, DOM_Node::ATTRIBUTE_NODE);
}