summaryrefslogtreecommitdiffstats
path: root/test/expect
diff options
context:
space:
mode:
authorMark A Russell <m.a.russell@me.com>2017-09-01 16:10:59 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-28 18:01:41 (GMT)
commit1c8efb95b7d48e5603fde7cb3e1ffbec10459ed1 (patch)
tree4a7ea70f9e9ecf12c2b7516171ecfa481249de0d /test/expect
parent98e2fb964f7e6d23d1b4ea7674f0f83d2b049fcc (diff)
downloadCastXML-1c8efb95b7d48e5603fde7cb3e1ffbec10459ed1.zip
CastXML-1c8efb95b7d48e5603fde7cb3e1ffbec10459ed1.tar.gz
CastXML-1c8efb95b7d48e5603fde7cb3e1ffbec10459ed1.tar.bz2
Output: Add dllexport/dllimport attributes
Diffstat (limited to 'test/expect')
-rw-r--r--test/expect/castxml1.any.Class-ms-dllexport.xml.txt17
-rw-r--r--test/expect/castxml1.any.Class-ms-dllimport.xml.txt17
-rw-r--r--test/expect/castxml1.any.Constructor-ms-dllexport.xml.txt17
-rw-r--r--test/expect/castxml1.any.Constructor-ms-dllimport.xml.txt17
-rw-r--r--test/expect/castxml1.any.Converter-ms-dllexport.xml.txt19
-rw-r--r--test/expect/castxml1.any.Converter-ms-dllimport.xml.txt19
-rw-r--r--test/expect/castxml1.any.Destructor-ms-dllexport.xml.txt17
-rw-r--r--test/expect/castxml1.any.Destructor-ms-dllimport.xml.txt17
-rw-r--r--test/expect/castxml1.any.Function-calling-convention-ms-dllexport.xml.txt26
-rw-r--r--test/expect/castxml1.any.Function-calling-convention-ms-dllimport.xml.txt26
-rw-r--r--test/expect/castxml1.any.Function-ms-dllexport.xml.txt10
-rw-r--r--test/expect/castxml1.any.Function-ms-dllimport.xml.txt10
-rw-r--r--test/expect/castxml1.any.Method-ms-dllexport.xml.txt21
-rw-r--r--test/expect/castxml1.any.Method-ms-dllimport.xml.txt21
-rw-r--r--test/expect/castxml1.any.OperatorFunction-ms-dllexport.xml.txt13
-rw-r--r--test/expect/castxml1.any.OperatorFunction-ms-dllimport.xml.txt13
-rw-r--r--test/expect/castxml1.any.OperatorMethod-ms-dllexport.xml.txt21
-rw-r--r--test/expect/castxml1.any.OperatorMethod-ms-dllimport.xml.txt21
-rw-r--r--test/expect/castxml1.any.Variable-ms-dllexport.xml.txt7
-rw-r--r--test/expect/castxml1.any.Variable-ms-dllimport.xml.txt7
-rw-r--r--test/expect/gccxml.any.Class-ms-dllexport.xml.txt17
-rw-r--r--test/expect/gccxml.any.Class-ms-dllimport.xml.txt17
-rw-r--r--test/expect/gccxml.any.Constructor-ms-dllexport.xml.txt17
-rw-r--r--test/expect/gccxml.any.Constructor-ms-dllimport.xml.txt17
-rw-r--r--test/expect/gccxml.any.Converter-ms-dllexport.xml.txt19
-rw-r--r--test/expect/gccxml.any.Converter-ms-dllimport.xml.txt19
-rw-r--r--test/expect/gccxml.any.Destructor-ms-dllexport.xml.txt17
-rw-r--r--test/expect/gccxml.any.Destructor-ms-dllimport.xml.txt17
-rw-r--r--test/expect/gccxml.any.Function-calling-convention-ms-dllexport.xml.txt26
-rw-r--r--test/expect/gccxml.any.Function-calling-convention-ms-dllimport.xml.txt26
-rw-r--r--test/expect/gccxml.any.Function-ms-dllexport.xml.txt10
-rw-r--r--test/expect/gccxml.any.Function-ms-dllimport.xml.txt10
-rw-r--r--test/expect/gccxml.any.Method-ms-dllexport.xml.txt21
-rw-r--r--test/expect/gccxml.any.Method-ms-dllimport.xml.txt21
-rw-r--r--test/expect/gccxml.any.OperatorFunction-ms-dllexport.xml.txt13
-rw-r--r--test/expect/gccxml.any.OperatorFunction-ms-dllimport.xml.txt13
-rw-r--r--test/expect/gccxml.any.OperatorMethod-ms-dllexport.xml.txt21
-rw-r--r--test/expect/gccxml.any.OperatorMethod-ms-dllimport.xml.txt21
-rw-r--r--test/expect/gccxml.any.Variable-ms-dllexport.xml.txt7
-rw-r--r--test/expect/gccxml.any.Variable-ms-dllimport.xml.txt7
40 files changed, 672 insertions, 0 deletions
diff --git a/test/expect/castxml1.any.Class-ms-dllexport.xml.txt b/test/expect/castxml1.any.Class-ms-dllexport.xml.txt
new file mode 100644
index 0000000..e0a3318
--- /dev/null
+++ b/test/expect/castxml1.any.Class-ms-dllexport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+" attributes="dllexport"/>
+ <Constructor id="_3" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllexport")?/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllexport")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_5" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+" attributes="dllexport">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllexport")?/>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Class-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Class-ms-dllimport.xml.txt b/test/expect/castxml1.any.Class-ms-dllimport.xml.txt
new file mode 100644
index 0000000..4126978
--- /dev/null
+++ b/test/expect/castxml1.any.Class-ms-dllimport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+" attributes="dllimport"/>
+ <Constructor id="_3" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllimport")?/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllimport")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_5" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+" attributes="dllimport">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllimport")?/>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Class-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Constructor-ms-dllexport.xml.txt b/test/expect/castxml1.any.Constructor-ms-dllexport.xml.txt
new file mode 100644
index 0000000..679a233
--- /dev/null
+++ b/test/expect/castxml1.any.Constructor-ms-dllexport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+"/>
+ <Constructor id="_3" name="start" context="_1" access="private" location="f1:3" file="f1" line="3" attributes="dllexport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_5" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Constructor-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Constructor-ms-dllimport.xml.txt b/test/expect/castxml1.any.Constructor-ms-dllimport.xml.txt
new file mode 100644
index 0000000..305b627
--- /dev/null
+++ b/test/expect/castxml1.any.Constructor-ms-dllimport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+"/>
+ <Constructor id="_3" name="start" context="_1" access="private" location="f1:3" file="f1" line="3" attributes="dllimport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_5" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Constructor-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Converter-ms-dllexport.xml.txt b/test/expect/castxml1.any.Converter-ms-dllexport.xml.txt
new file mode 100644
index 0000000..183abaa
--- /dev/null
+++ b/test/expect/castxml1.any.Converter-ms-dllexport.xml.txt
@@ -0,0 +1,19 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <Converter id="_3" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllexport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_10" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <FundamentalType id="_8" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_9" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_10" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Converter-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Converter-ms-dllimport.xml.txt b/test/expect/castxml1.any.Converter-ms-dllimport.xml.txt
new file mode 100644
index 0000000..4b7c7e2
--- /dev/null
+++ b/test/expect/castxml1.any.Converter-ms-dllimport.xml.txt
@@ -0,0 +1,19 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <Converter id="_3" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllimport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_10" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <FundamentalType id="_8" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_9" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_10" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Converter-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Destructor-ms-dllexport.xml.txt b/test/expect/castxml1.any.Destructor-ms-dllexport.xml.txt
new file mode 100644
index 0000000..253e985
--- /dev/null
+++ b/test/expect/castxml1.any.Destructor-ms-dllexport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+"/>
+ <Destructor id="_3" name="start" context="_1" access="private" location="f1:3" file="f1" line="3" attributes="dllexport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Destructor-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Destructor-ms-dllimport.xml.txt b/test/expect/castxml1.any.Destructor-ms-dllimport.xml.txt
new file mode 100644
index 0000000..3cb103d
--- /dev/null
+++ b/test/expect/castxml1.any.Destructor-ms-dllimport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+"/>
+ <Destructor id="_3" name="start" context="_1" access="private" location="f1:3" file="f1" line="3" attributes="dllimport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Destructor-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Function-calling-convention-ms-dllexport.xml.txt b/test/expect/castxml1.any.Function-calling-convention-ms-dllexport.xml.txt
new file mode 100644
index 0000000..f8dcfa1
--- /dev/null
+++ b/test/expect/castxml1.any.Function-calling-convention-ms-dllexport.xml.txt
@@ -0,0 +1,26 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Function id="_1" name="start" returns="_5" context="_6" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <Function id="_2" name="start" returns="_5" context="_6" location="f1:2" file="f1" line="2" mangled="[^"]+" attributes="__stdcall__ dllexport">
+ <Argument type="_8" location="f1:2" file="f1" line="2"/>
+ </Function>
+ <Function id="_3" name="start" returns="_5" context="_6" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="__fastcall__ dllexport">
+ <Argument type="_9" location="f1:3" file="f1" line="3"/>
+ </Function>
+ <Function id="_4" name="start" returns="_5" context="_6" location="f1:4" file="f1" line="4" mangled="[^"]+" attributes="__thiscall__ dllexport">
+ <Argument type="_10" location="f1:4" file="f1" line="4"/>
+ </Function>
+ <FundamentalType id="_5" name="void" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_7" type="_11" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_8" type="_12" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_9" type="_13" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_10" type="_14" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_6" name="::"/>
+ <FunctionType id="_11" returns="_5"/>
+ <FunctionType id="_12" returns="_5" attributes="__stdcall__"/>
+ <FunctionType id="_13" returns="_5" attributes="__fastcall__"/>
+ <FunctionType id="_14" returns="_5" attributes="__thiscall__"/>
+ <File id="f1" name=".*/test/input/Function-calling-convention-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Function-calling-convention-ms-dllimport.xml.txt b/test/expect/castxml1.any.Function-calling-convention-ms-dllimport.xml.txt
new file mode 100644
index 0000000..99346b3
--- /dev/null
+++ b/test/expect/castxml1.any.Function-calling-convention-ms-dllimport.xml.txt
@@ -0,0 +1,26 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Function id="_1" name="start" returns="_5" context="_6" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <Function id="_2" name="start" returns="_5" context="_6" location="f1:2" file="f1" line="2" mangled="[^"]+" attributes="__stdcall__ dllimport">
+ <Argument type="_8" location="f1:2" file="f1" line="2"/>
+ </Function>
+ <Function id="_3" name="start" returns="_5" context="_6" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="__fastcall__ dllimport">
+ <Argument type="_9" location="f1:3" file="f1" line="3"/>
+ </Function>
+ <Function id="_4" name="start" returns="_5" context="_6" location="f1:4" file="f1" line="4" mangled="[^"]+" attributes="__thiscall__ dllimport">
+ <Argument type="_10" location="f1:4" file="f1" line="4"/>
+ </Function>
+ <FundamentalType id="_5" name="void" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_7" type="_11" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_8" type="_12" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_9" type="_13" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_10" type="_14" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_6" name="::"/>
+ <FunctionType id="_11" returns="_5"/>
+ <FunctionType id="_12" returns="_5" attributes="__stdcall__"/>
+ <FunctionType id="_13" returns="_5" attributes="__fastcall__"/>
+ <FunctionType id="_14" returns="_5" attributes="__thiscall__"/>
+ <File id="f1" name=".*/test/input/Function-calling-convention-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Function-ms-dllexport.xml.txt b/test/expect/castxml1.any.Function-ms-dllexport.xml.txt
new file mode 100644
index 0000000..8c446fd
--- /dev/null
+++ b/test/expect/castxml1.any.Function-ms-dllexport.xml.txt
@@ -0,0 +1,10 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Function id="_1" name="start" returns="_2" context="_3" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_4" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <FundamentalType id="_2" name="void" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_4" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Function-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Function-ms-dllimport.xml.txt b/test/expect/castxml1.any.Function-ms-dllimport.xml.txt
new file mode 100644
index 0000000..964edba
--- /dev/null
+++ b/test/expect/castxml1.any.Function-ms-dllimport.xml.txt
@@ -0,0 +1,10 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Function id="_1" name="start" returns="_2" context="_3" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_4" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <FundamentalType id="_2" name="void" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_4" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Function-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Method-ms-dllexport.xml.txt b/test/expect/castxml1.any.Method-ms-dllexport.xml.txt
new file mode 100644
index 0000000..8c5c8ce
--- /dev/null
+++ b/test/expect/castxml1.any.Method-ms-dllexport.xml.txt
@@ -0,0 +1,21 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <Method id="_3" name="method" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_8" location="f1:3" file="f1" line="3"/>
+ </Method>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_10" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <FundamentalType id="_8" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_9" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_10" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Method-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Method-ms-dllimport.xml.txt b/test/expect/castxml1.any.Method-ms-dllimport.xml.txt
new file mode 100644
index 0000000..2081e72
--- /dev/null
+++ b/test/expect/castxml1.any.Method-ms-dllimport.xml.txt
@@ -0,0 +1,21 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <Method id="_3" name="method" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_8" location="f1:3" file="f1" line="3"/>
+ </Method>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_10" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <FundamentalType id="_8" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_9" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_10" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Method-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.OperatorFunction-ms-dllexport.xml.txt b/test/expect/castxml1.any.OperatorFunction-ms-dllexport.xml.txt
new file mode 100644
index 0000000..1176289
--- /dev/null
+++ b/test/expect/castxml1.any.OperatorFunction-ms-dllexport.xml.txt
@@ -0,0 +1,13 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Namespace id="_1" name="start" context="_2" members="_3"/>
+ <OperatorFunction id="_3" name="&lt;&lt;" returns="_4" context="_1" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_4" location="f1:3" file="f1" line="3"/>
+ <Argument type="_5" location="f1:3" file="f1" line="3"/>
+ </OperatorFunction>
+ <ReferenceType id="_4" type="_6" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_5" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <Class id="_6" name="A" context="_2" location="f1:1" file="f1" line="1" incomplete="1"/>
+ <File id="f1" name=".*/test/input/OperatorFunction-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.OperatorFunction-ms-dllimport.xml.txt b/test/expect/castxml1.any.OperatorFunction-ms-dllimport.xml.txt
new file mode 100644
index 0000000..31824d7
--- /dev/null
+++ b/test/expect/castxml1.any.OperatorFunction-ms-dllimport.xml.txt
@@ -0,0 +1,13 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Namespace id="_1" name="start" context="_2" members="_3"/>
+ <OperatorFunction id="_3" name="&lt;&lt;" returns="_4" context="_1" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_4" location="f1:3" file="f1" line="3"/>
+ <Argument type="_5" location="f1:3" file="f1" line="3"/>
+ </OperatorFunction>
+ <ReferenceType id="_4" type="_6" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_5" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <Class id="_6" name="A" context="_2" location="f1:1" file="f1" line="1" incomplete="1"/>
+ <File id="f1" name=".*/test/input/OperatorFunction-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.OperatorMethod-ms-dllexport.xml.txt b/test/expect/castxml1.any.OperatorMethod-ms-dllexport.xml.txt
new file mode 100644
index 0000000..fe21d17
--- /dev/null
+++ b/test/expect/castxml1.any.OperatorMethod-ms-dllexport.xml.txt
@@ -0,0 +1,21 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <OperatorMethod id="_3" name="&lt;&lt;" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_9" location="f1:3" file="f1" line="3"/>
+ </OperatorMethod>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_9" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_10" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/OperatorMethod-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.OperatorMethod-ms-dllimport.xml.txt b/test/expect/castxml1.any.OperatorMethod-ms-dllimport.xml.txt
new file mode 100644
index 0000000..fbd7727
--- /dev/null
+++ b/test/expect/castxml1.any.OperatorMethod-ms-dllimport.xml.txt
@@ -0,0 +1,21 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <OperatorMethod id="_3" name="&lt;&lt;" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_9" location="f1:3" file="f1" line="3"/>
+ </OperatorMethod>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_9" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_10" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/OperatorMethod-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Variable-ms-dllexport.xml.txt b/test/expect/castxml1.any.Variable-ms-dllexport.xml.txt
new file mode 100644
index 0000000..5690b6c
--- /dev/null
+++ b/test/expect/castxml1.any.Variable-ms-dllexport.xml.txt
@@ -0,0 +1,7 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Variable id="_1" name="start" type="_2" context="_3" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllexport"/>
+ <FundamentalType id="_2" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Variable-ms-dllexport.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Variable-ms-dllimport.xml.txt b/test/expect/castxml1.any.Variable-ms-dllimport.xml.txt
new file mode 100644
index 0000000..9a20fe4
--- /dev/null
+++ b/test/expect/castxml1.any.Variable-ms-dllimport.xml.txt
@@ -0,0 +1,7 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Variable id="_1" name="start" type="_2" context="_3" location="f1:1" file="f1" line="1" extern="1" mangled="[^"]+" attributes="dllimport"/>
+ <FundamentalType id="_2" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Variable-ms-dllimport.cxx"/>
+</CastXML>$
diff --git a/test/expect/gccxml.any.Class-ms-dllexport.xml.txt b/test/expect/gccxml.any.Class-ms-dllexport.xml.txt
new file mode 100644
index 0000000..2c8cb9d
--- /dev/null
+++ b/test/expect/gccxml.any.Class-ms-dllexport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+" attributes="dllexport"/>
+ <Constructor id="_3" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllexport")?/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllexport")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_5" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+" attributes="dllexport">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllexport")?/>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Class-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Class-ms-dllimport.xml.txt b/test/expect/gccxml.any.Class-ms-dllimport.xml.txt
new file mode 100644
index 0000000..12cc38e
--- /dev/null
+++ b/test/expect/gccxml.any.Class-ms-dllimport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+" attributes="dllimport"/>
+ <Constructor id="_3" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllimport")?/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllimport")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_5" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+" attributes="dllimport">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?( attributes="dllimport")?/>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Class-ms-dllimport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Constructor-ms-dllexport.xml.txt b/test/expect/gccxml.any.Constructor-ms-dllexport.xml.txt
new file mode 100644
index 0000000..e3c7dfb
--- /dev/null
+++ b/test/expect/gccxml.any.Constructor-ms-dllexport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+"/>
+ <Constructor id="_3" name="start" context="_1" access="private" location="f1:3" file="f1" line="3" attributes="dllexport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_5" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Constructor-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Constructor-ms-dllimport.xml.txt b/test/expect/gccxml.any.Constructor-ms-dllimport.xml.txt
new file mode 100644
index 0000000..2d1a68d
--- /dev/null
+++ b/test/expect/gccxml.any.Constructor-ms-dllimport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+"/>
+ <Constructor id="_3" name="start" context="_1" access="private" location="f1:3" file="f1" line="3" attributes="dllimport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_5" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Constructor-ms-dllimport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Converter-ms-dllexport.xml.txt b/test/expect/gccxml.any.Converter-ms-dllexport.xml.txt
new file mode 100644
index 0000000..229846a
--- /dev/null
+++ b/test/expect/gccxml.any.Converter-ms-dllexport.xml.txt
@@ -0,0 +1,19 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <Converter id="_3" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllexport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_10" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <FundamentalType id="_8" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_9" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_10" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Converter-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Converter-ms-dllimport.xml.txt b/test/expect/gccxml.any.Converter-ms-dllimport.xml.txt
new file mode 100644
index 0000000..8281e82
--- /dev/null
+++ b/test/expect/gccxml.any.Converter-ms-dllimport.xml.txt
@@ -0,0 +1,19 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <Converter id="_3" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllimport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_10" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <FundamentalType id="_8" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_9" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_10" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Converter-ms-dllimport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Destructor-ms-dllexport.xml.txt b/test/expect/gccxml.any.Destructor-ms-dllexport.xml.txt
new file mode 100644
index 0000000..fb419d4
--- /dev/null
+++ b/test/expect/gccxml.any.Destructor-ms-dllexport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+"/>
+ <Destructor id="_3" name="start" context="_1" access="private" location="f1:3" file="f1" line="3" attributes="dllexport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Destructor-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Destructor-ms-dllimport.xml.txt b/test/expect/gccxml.any.Destructor-ms-dllimport.xml.txt
new file mode 100644
index 0000000..4de15e7
--- /dev/null
+++ b/test/expect/gccxml.any.Destructor-ms-dllimport.xml.txt
@@ -0,0 +1,17 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+"/>
+ <Destructor id="_3" name="start" context="_1" access="private" location="f1:3" file="f1" line="3" attributes="dllimport"/>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <ReferenceType id="_7" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Destructor-ms-dllimport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Function-calling-convention-ms-dllexport.xml.txt b/test/expect/gccxml.any.Function-calling-convention-ms-dllexport.xml.txt
new file mode 100644
index 0000000..eb59d38
--- /dev/null
+++ b/test/expect/gccxml.any.Function-calling-convention-ms-dllexport.xml.txt
@@ -0,0 +1,26 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Function id="_1" name="start" returns="_5" context="_6" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <Function id="_2" name="start" returns="_5" context="_6" location="f1:2" file="f1" line="2" mangled="[^"]+" attributes="__stdcall__ dllexport">
+ <Argument type="_8" location="f1:2" file="f1" line="2"/>
+ </Function>
+ <Function id="_3" name="start" returns="_5" context="_6" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="__fastcall__ dllexport">
+ <Argument type="_9" location="f1:3" file="f1" line="3"/>
+ </Function>
+ <Function id="_4" name="start" returns="_5" context="_6" location="f1:4" file="f1" line="4" mangled="[^"]+" attributes="__thiscall__ dllexport">
+ <Argument type="_10" location="f1:4" file="f1" line="4"/>
+ </Function>
+ <FundamentalType id="_5" name="void" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_7" type="_11" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_8" type="_12" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_9" type="_13" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_10" type="_14" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_6" name="::"/>
+ <FunctionType id="_11" returns="_5"/>
+ <FunctionType id="_12" returns="_5" attributes="__stdcall__"/>
+ <FunctionType id="_13" returns="_5" attributes="__fastcall__"/>
+ <FunctionType id="_14" returns="_5" attributes="__thiscall__"/>
+ <File id="f1" name=".*/test/input/Function-calling-convention-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Function-calling-convention-ms-dllimport.xml.txt b/test/expect/gccxml.any.Function-calling-convention-ms-dllimport.xml.txt
new file mode 100644
index 0000000..2d99cce
--- /dev/null
+++ b/test/expect/gccxml.any.Function-calling-convention-ms-dllimport.xml.txt
@@ -0,0 +1,26 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Function id="_1" name="start" returns="_5" context="_6" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_7" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <Function id="_2" name="start" returns="_5" context="_6" location="f1:2" file="f1" line="2" mangled="[^"]+" attributes="__stdcall__ dllimport">
+ <Argument type="_8" location="f1:2" file="f1" line="2"/>
+ </Function>
+ <Function id="_3" name="start" returns="_5" context="_6" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="__fastcall__ dllimport">
+ <Argument type="_9" location="f1:3" file="f1" line="3"/>
+ </Function>
+ <Function id="_4" name="start" returns="_5" context="_6" location="f1:4" file="f1" line="4" mangled="[^"]+" attributes="__thiscall__ dllimport">
+ <Argument type="_10" location="f1:4" file="f1" line="4"/>
+ </Function>
+ <FundamentalType id="_5" name="void" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_7" type="_11" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_8" type="_12" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_9" type="_13" size="[0-9]+" align="[0-9]+"/>
+ <PointerType id="_10" type="_14" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_6" name="::"/>
+ <FunctionType id="_11" returns="_5"/>
+ <FunctionType id="_12" returns="_5" attributes="__stdcall__"/>
+ <FunctionType id="_13" returns="_5" attributes="__fastcall__"/>
+ <FunctionType id="_14" returns="_5" attributes="__thiscall__"/>
+ <File id="f1" name=".*/test/input/Function-calling-convention-ms-dllimport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Function-ms-dllexport.xml.txt b/test/expect/gccxml.any.Function-ms-dllexport.xml.txt
new file mode 100644
index 0000000..705bedb
--- /dev/null
+++ b/test/expect/gccxml.any.Function-ms-dllexport.xml.txt
@@ -0,0 +1,10 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Function id="_1" name="start" returns="_2" context="_3" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_4" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <FundamentalType id="_2" name="void" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_4" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Function-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Function-ms-dllimport.xml.txt b/test/expect/gccxml.any.Function-ms-dllimport.xml.txt
new file mode 100644
index 0000000..4fc78f5
--- /dev/null
+++ b/test/expect/gccxml.any.Function-ms-dllimport.xml.txt
@@ -0,0 +1,10 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Function id="_1" name="start" returns="_2" context="_3" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_4" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <FundamentalType id="_2" name="void" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_4" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Function-ms-dllimport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Method-ms-dllexport.xml.txt b/test/expect/gccxml.any.Method-ms-dllexport.xml.txt
new file mode 100644
index 0000000..cba9c0d
--- /dev/null
+++ b/test/expect/gccxml.any.Method-ms-dllexport.xml.txt
@@ -0,0 +1,21 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <Method id="_3" name="method" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_8" location="f1:3" file="f1" line="3"/>
+ </Method>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_10" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <FundamentalType id="_8" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_9" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_10" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Method-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Method-ms-dllimport.xml.txt b/test/expect/gccxml.any.Method-ms-dllimport.xml.txt
new file mode 100644
index 0000000..5d6e3ef
--- /dev/null
+++ b/test/expect/gccxml.any.Method-ms-dllimport.xml.txt
@@ -0,0 +1,21 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <Method id="_3" name="method" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_8" location="f1:3" file="f1" line="3"/>
+ </Method>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_10" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_9" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <FundamentalType id="_8" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_9" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <ReferenceType id="_10" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Method-ms-dllimport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.OperatorFunction-ms-dllexport.xml.txt b/test/expect/gccxml.any.OperatorFunction-ms-dllexport.xml.txt
new file mode 100644
index 0000000..e7f0a9f
--- /dev/null
+++ b/test/expect/gccxml.any.OperatorFunction-ms-dllexport.xml.txt
@@ -0,0 +1,13 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Namespace id="_1" name="start" context="_2" members="_3"/>
+ <OperatorFunction id="_3" name="&lt;&lt;" returns="_4" context="_1" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_4" location="f1:3" file="f1" line="3"/>
+ <Argument type="_5" location="f1:3" file="f1" line="3"/>
+ </OperatorFunction>
+ <ReferenceType id="_4" type="_6" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_5" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <Class id="_6" name="A" context="_2" location="f1:1" file="f1" line="1" incomplete="1"/>
+ <File id="f1" name=".*/test/input/OperatorFunction-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.OperatorFunction-ms-dllimport.xml.txt b/test/expect/gccxml.any.OperatorFunction-ms-dllimport.xml.txt
new file mode 100644
index 0000000..c6d7f9b
--- /dev/null
+++ b/test/expect/gccxml.any.OperatorFunction-ms-dllimport.xml.txt
@@ -0,0 +1,13 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Namespace id="_1" name="start" context="_2" members="_3"/>
+ <OperatorFunction id="_3" name="&lt;&lt;" returns="_4" context="_1" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_4" location="f1:3" file="f1" line="3"/>
+ <Argument type="_5" location="f1:3" file="f1" line="3"/>
+ </OperatorFunction>
+ <ReferenceType id="_4" type="_6" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_5" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_2" name="::"/>
+ <Class id="_6" name="A" context="_2" location="f1:1" file="f1" line="1" incomplete="1"/>
+ <File id="f1" name=".*/test/input/OperatorFunction-ms-dllimport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.OperatorMethod-ms-dllexport.xml.txt b/test/expect/gccxml.any.OperatorMethod-ms-dllexport.xml.txt
new file mode 100644
index 0000000..cfba7a4
--- /dev/null
+++ b/test/expect/gccxml.any.OperatorMethod-ms-dllexport.xml.txt
@@ -0,0 +1,21 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <OperatorMethod id="_3" name="&lt;&lt;" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllexport">
+ <Argument type="_9" location="f1:3" file="f1" line="3"/>
+ </OperatorMethod>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_9" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_10" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/OperatorMethod-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.OperatorMethod-ms-dllimport.xml.txt b/test/expect/gccxml.any.OperatorMethod-ms-dllimport.xml.txt
new file mode 100644
index 0000000..3e18527
--- /dev/null
+++ b/test/expect/gccxml.any.OperatorMethod-ms-dllimport.xml.txt
@@ -0,0 +1,21 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
+ <OperatorMethod id="_3" name="&lt;&lt;" returns="_8" context="_1" access="private" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="dllimport">
+ <Argument type="_9" location="f1:3" file="f1" line="3"/>
+ </OperatorMethod>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <ReferenceType id="_8" type="_1" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_9" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_10" type="_1c" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/OperatorMethod-ms-dllimport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Variable-ms-dllexport.xml.txt b/test/expect/gccxml.any.Variable-ms-dllexport.xml.txt
new file mode 100644
index 0000000..9356bbb
--- /dev/null
+++ b/test/expect/gccxml.any.Variable-ms-dllexport.xml.txt
@@ -0,0 +1,7 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Variable id="_1" name="start" type="_2" context="_3" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="dllexport"/>
+ <FundamentalType id="_2" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Variable-ms-dllexport.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Variable-ms-dllimport.xml.txt b/test/expect/gccxml.any.Variable-ms-dllimport.xml.txt
new file mode 100644
index 0000000..b05da15
--- /dev/null
+++ b/test/expect/gccxml.any.Variable-ms-dllimport.xml.txt
@@ -0,0 +1,7 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Variable id="_1" name="start" type="_2" context="_3" location="f1:1" file="f1" line="1" extern="1" mangled="[^"]+" attributes="dllimport"/>
+ <FundamentalType id="_2" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Variable-ms-dllimport.cxx"/>
+</GCC_XML>$