summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-13 17:15:51 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-13 17:32:02 (GMT)
commit367e90c1ecd92adb0071b4ec1ddf684213805afc (patch)
tree831dbd5c22934af630cdd13b89beedfbfdf199c1 /test
parentae62b1a29c8233c3dd40fc3e293ddcdbe0bdcccc (diff)
downloadCastXML-367e90c1ecd92adb0071b4ec1ddf684213805afc.zip
CastXML-367e90c1ecd92adb0071b4ec1ddf684213805afc.tar.gz
CastXML-367e90c1ecd92adb0071b4ec1ddf684213805afc.tar.bz2
Output: Add deprecated attribute
Fixes: #92
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt14
-rw-r--r--test/expect/castxml1.any.Class-deprecated.xml.txt17
-rw-r--r--test/expect/castxml1.any.Constructor-deprecated.xml.txt17
-rw-r--r--test/expect/castxml1.any.Converter-deprecated.xml.txt19
-rw-r--r--test/expect/castxml1.any.Destructor-deprecated.xml.txt17
-rw-r--r--test/expect/castxml1.any.Enumeration-deprecated.xml.txt8
-rw-r--r--test/expect/castxml1.any.Field-deprecated.xml.txt19
-rw-r--r--test/expect/castxml1.any.Function-Argument-deprecated.xml.txt10
-rw-r--r--test/expect/castxml1.any.Function-calling-convention-ms-deprecated.xml.txt26
-rw-r--r--test/expect/castxml1.any.Function-deprecated.xml.txt10
-rw-r--r--test/expect/castxml1.any.Method-deprecated.xml.txt21
-rw-r--r--test/expect/castxml1.any.OperatorFunction-deprecated.xml.txt13
-rw-r--r--test/expect/castxml1.any.OperatorMethod-deprecated.xml.txt21
-rw-r--r--test/expect/castxml1.any.Typedef-deprecated.xml.txt7
-rw-r--r--test/expect/castxml1.any.Variable-deprecated.xml.txt7
-rw-r--r--test/expect/gccxml.any.Class-deprecated.xml.txt17
-rw-r--r--test/expect/gccxml.any.Constructor-deprecated.xml.txt17
-rw-r--r--test/expect/gccxml.any.Converter-deprecated.xml.txt19
-rw-r--r--test/expect/gccxml.any.Destructor-deprecated.xml.txt17
-rw-r--r--test/expect/gccxml.any.Enumeration-deprecated.xml.txt8
-rw-r--r--test/expect/gccxml.any.Field-deprecated.xml.txt19
-rw-r--r--test/expect/gccxml.any.Function-Argument-deprecated.xml.txt10
-rw-r--r--test/expect/gccxml.any.Function-calling-convention-ms-deprecated.xml.txt26
-rw-r--r--test/expect/gccxml.any.Function-deprecated.xml.txt10
-rw-r--r--test/expect/gccxml.any.Method-deprecated.xml.txt21
-rw-r--r--test/expect/gccxml.any.OperatorFunction-deprecated.xml.txt13
-rw-r--r--test/expect/gccxml.any.OperatorMethod-deprecated.xml.txt21
-rw-r--r--test/expect/gccxml.any.Typedef-deprecated.xml.txt7
-rw-r--r--test/expect/gccxml.any.Variable-deprecated.xml.txt7
-rw-r--r--test/input/Class-deprecated.cxx3
-rw-r--r--test/input/Constructor-deprecated.cxx4
-rw-r--r--test/input/Converter-deprecated.cxx4
-rw-r--r--test/input/Destructor-deprecated.cxx4
-rw-r--r--test/input/Enumeration-deprecated.cxx4
-rw-r--r--test/input/Field-deprecated.cxx4
-rw-r--r--test/input/Function-Argument-deprecated.cxx1
-rw-r--r--test/input/Function-calling-convention-ms-deprecated.cxx4
-rw-r--r--test/input/Function-deprecated.cxx1
-rw-r--r--test/input/Method-deprecated.cxx4
-rw-r--r--test/input/OperatorFunction-deprecated.cxx4
-rw-r--r--test/input/OperatorMethod-deprecated.cxx4
-rw-r--r--test/input/Typedef-deprecated.cxx1
-rw-r--r--test/input/Variable-deprecated.cxx1
43 files changed, 481 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 5e61282..e0fbc09 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -346,6 +346,7 @@ castxml_test_output(ArrayType-incomplete)
castxml_test_output(Class)
castxml_test_output(Class-abstract)
castxml_test_output(Class-annotate)
+castxml_test_output(Class-deprecated)
castxml_test_output(Class-base-offset)
castxml_test_output(Class-base-typedef)
castxml_test_output(Class-bases)
@@ -380,22 +381,29 @@ castxml_test_output(Class-template-member-template)
castxml_test_output(Class-template-recurse)
castxml_test_output(Constructor)
castxml_test_output(Constructor-annotate)
+castxml_test_output(Constructor-deprecated)
castxml_test_output(Converter)
castxml_test_output(Converter-annotate)
+castxml_test_output(Converter-deprecated)
castxml_test_output(CvQualifiedType)
castxml_test_output(CXXLiteral)
castxml_test_output(Destructor)
castxml_test_output(Destructor-annotate)
+castxml_test_output(Destructor-deprecated)
castxml_test_output(Elaborated)
castxml_test_output(Enumeration)
castxml_test_output(Enumeration-annotate)
+castxml_test_output(Enumeration-deprecated)
castxml_test_output(Enumeration-anonymous)
castxml_test_output(Field)
castxml_test_output(Field-annotate)
+castxml_test_output(Field-deprecated)
castxml_test_output(Function)
castxml_test_output_14(Function-auto)
castxml_test_output(Function-annotate)
+castxml_test_output(Function-deprecated)
castxml_test_output(Function-Argument-annotate)
+castxml_test_output(Function-Argument-deprecated)
castxml_test_output(Function-Argument-decay)
castxml_test_output(Function-Argument-default)
castxml_test_output(Function-Argument-default-cast)
@@ -411,6 +419,7 @@ castxml_test_output(FundamentalType)
castxml_test_output(FundamentalTypes)
castxml_test_output(Method)
castxml_test_output(Method-annotate)
+castxml_test_output(Method-deprecated)
castxml_test_output(Method-Argument-default)
castxml_test_output(Method-Argument-default-cast)
castxml_test_output(Method-overrides)
@@ -435,14 +444,17 @@ castxml_test_output(OffsetType)
castxml_test_output(OffsetType-cv)
castxml_test_output(OperatorFunction)
castxml_test_output(OperatorFunction-annotate)
+castxml_test_output(OperatorFunction-deprecated)
castxml_test_output(OperatorMethod)
castxml_test_output(OperatorMethod-annotate)
+castxml_test_output(OperatorMethod-deprecated)
castxml_test_output(PointerType)
castxml_test_output(ReferenceType)
castxml_test_output(RValueReferenceType)
castxml_test_output(TypeAlias)
castxml_test_output(TypeAliasTemplate)
castxml_test_output(Typedef-annotate)
+castxml_test_output(Typedef-deprecated)
castxml_test_output(Typedef-paren)
castxml_test_output(Typedef-to-Class-template)
castxml_test_output(Typedef-to-Enumeration)
@@ -453,6 +465,7 @@ castxml_test_output(Typedef-to-Struct-anonymous)
castxml_test_output(Typedef-to-Union-anonymous)
castxml_test_output(Variable)
castxml_test_output(Variable-annotate)
+castxml_test_output(Variable-deprecated)
castxml_test_output(Variable-in-Class)
castxml_test_output(Variable-init)
castxml_test_output(Variable-init-cast)
@@ -502,6 +515,7 @@ if(";${LLVM_TARGETS_TO_BUILD};" MATCHES ";X86;")
castxml_test_output(Variable-ms-dllimport)
castxml_test_output(Function-calling-convention-ms)
castxml_test_output(Function-calling-convention-ms-annotate)
+ castxml_test_output(Function-calling-convention-ms-deprecated)
castxml_test_output(Function-calling-convention-ms-dllexport)
castxml_test_output(Function-calling-convention-ms-dllimport)
castxml_test_output(implicit-decl-ms)
diff --git a/test/expect/castxml1.any.Class-deprecated.xml.txt b/test/expect/castxml1.any.Class-deprecated.xml.txt
new file mode 100644
index 0000000..d7234bb
--- /dev/null
+++ b/test/expect/castxml1.any.Class-deprecated.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="deprecated"/>
+ <Constructor id="_3" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <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/Class-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Constructor-deprecated.xml.txt b/test/expect/castxml1.any.Constructor-deprecated.xml.txt
new file mode 100644
index 0000000..43bc72d
--- /dev/null
+++ b/test/expect/castxml1.any.Constructor-deprecated.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="deprecated"/>
+ <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-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Converter-deprecated.xml.txt b/test/expect/castxml1.any.Converter-deprecated.xml.txt
new file mode 100644
index 0000000..498508a
--- /dev/null
+++ b/test/expect/castxml1.any.Converter-deprecated.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="deprecated"/>
+ <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-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Destructor-deprecated.xml.txt b/test/expect/castxml1.any.Destructor-deprecated.xml.txt
new file mode 100644
index 0000000..8170cd2
--- /dev/null
+++ b/test/expect/castxml1.any.Destructor-deprecated.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="deprecated"/>
+ <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-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Enumeration-deprecated.xml.txt b/test/expect/castxml1.any.Enumeration-deprecated.xml.txt
new file mode 100644
index 0000000..37097af
--- /dev/null
+++ b/test/expect/castxml1.any.Enumeration-deprecated.xml.txt
@@ -0,0 +1,8 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Enumeration id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" size="[0-9]+" align="[0-9]+" attributes="deprecated">
+ <EnumValue name="ev0" init="0" attributes="deprecated"/>
+ </Enumeration>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Enumeration-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Field-deprecated.xml.txt b/test/expect/castxml1.any.Field-deprecated.xml.txt
new file mode 100644
index 0000000..8aec90d
--- /dev/null
+++ b/test/expect/castxml1.any.Field-deprecated.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]+"/>
+ <Field id="_3" name="field" type="_8" context="_1" access="private" location="f1:3" file="f1" line="3" offset="0" attributes="deprecated"/>
+ <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/Field-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Function-Argument-deprecated.xml.txt b/test/expect/castxml1.any.Function-Argument-deprecated.xml.txt
new file mode 100644
index 0000000..f475211
--- /dev/null
+++ b/test/expect/castxml1.any.Function-Argument-deprecated.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="[^"]+">
+ <Argument type="_4" location="f1:1" file="f1" line="1" attributes="deprecated"/>
+ </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-Argument-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Function-calling-convention-ms-deprecated.xml.txt b/test/expect/castxml1.any.Function-calling-convention-ms-deprecated.xml.txt
new file mode 100644
index 0000000..8ea5cf1
--- /dev/null
+++ b/test/expect/castxml1.any.Function-calling-convention-ms-deprecated.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="deprecated">
+ <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__ deprecated">
+ <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__ deprecated">
+ <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__ deprecated">
+ <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-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Function-deprecated.xml.txt b/test/expect/castxml1.any.Function-deprecated.xml.txt
new file mode 100644
index 0000000..402fe34
--- /dev/null
+++ b/test/expect/castxml1.any.Function-deprecated.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="deprecated">
+ <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-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Method-deprecated.xml.txt b/test/expect/castxml1.any.Method-deprecated.xml.txt
new file mode 100644
index 0000000..cb7400c
--- /dev/null
+++ b/test/expect/castxml1.any.Method-deprecated.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="deprecated">
+ <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-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.OperatorFunction-deprecated.xml.txt b/test/expect/castxml1.any.OperatorFunction-deprecated.xml.txt
new file mode 100644
index 0000000..66e4a8f
--- /dev/null
+++ b/test/expect/castxml1.any.OperatorFunction-deprecated.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="deprecated">
+ <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-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.OperatorMethod-deprecated.xml.txt b/test/expect/castxml1.any.OperatorMethod-deprecated.xml.txt
new file mode 100644
index 0000000..efcc947
--- /dev/null
+++ b/test/expect/castxml1.any.OperatorMethod-deprecated.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="deprecated">
+ <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-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Typedef-deprecated.xml.txt b/test/expect/castxml1.any.Typedef-deprecated.xml.txt
new file mode 100644
index 0000000..a9e2ec2
--- /dev/null
+++ b/test/expect/castxml1.any.Typedef-deprecated.xml.txt
@@ -0,0 +1,7 @@
+^<\?xml version="1.0"\?>
+<CastXML[^>]*>
+ <Typedef id="_1" name="start" type="_2" context="_3" location="f1:1" file="f1" line="1" attributes="deprecated"/>
+ <FundamentalType id="_2" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Typedef-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/castxml1.any.Variable-deprecated.xml.txt b/test/expect/castxml1.any.Variable-deprecated.xml.txt
new file mode 100644
index 0000000..bb61ecd
--- /dev/null
+++ b/test/expect/castxml1.any.Variable-deprecated.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="deprecated"/>
+ <FundamentalType id="_2" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Variable-deprecated.cxx"/>
+</CastXML>$
diff --git a/test/expect/gccxml.any.Class-deprecated.xml.txt b/test/expect/gccxml.any.Class-deprecated.xml.txt
new file mode 100644
index 0000000..aad5ed6
--- /dev/null
+++ b/test/expect/gccxml.any.Class-deprecated.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="deprecated"/>
+ <Constructor id="_3" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <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/Class-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Constructor-deprecated.xml.txt b/test/expect/gccxml.any.Constructor-deprecated.xml.txt
new file mode 100644
index 0000000..c3b9d85
--- /dev/null
+++ b/test/expect/gccxml.any.Constructor-deprecated.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="deprecated"/>
+ <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-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Converter-deprecated.xml.txt b/test/expect/gccxml.any.Converter-deprecated.xml.txt
new file mode 100644
index 0000000..0cdb388
--- /dev/null
+++ b/test/expect/gccxml.any.Converter-deprecated.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="deprecated"/>
+ <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-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Destructor-deprecated.xml.txt b/test/expect/gccxml.any.Destructor-deprecated.xml.txt
new file mode 100644
index 0000000..22760be
--- /dev/null
+++ b/test/expect/gccxml.any.Destructor-deprecated.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="deprecated"/>
+ <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-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Enumeration-deprecated.xml.txt b/test/expect/gccxml.any.Enumeration-deprecated.xml.txt
new file mode 100644
index 0000000..fff0930
--- /dev/null
+++ b/test/expect/gccxml.any.Enumeration-deprecated.xml.txt
@@ -0,0 +1,8 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Enumeration id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" size="[0-9]+" align="[0-9]+" attributes="deprecated">
+ <EnumValue name="ev0" init="0" attributes="deprecated"/>
+ </Enumeration>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Enumeration-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Field-deprecated.xml.txt b/test/expect/gccxml.any.Field-deprecated.xml.txt
new file mode 100644
index 0000000..bc7bb93
--- /dev/null
+++ b/test/expect/gccxml.any.Field-deprecated.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]+"/>
+ <Field id="_3" name="field" type="_8" context="_1" access="private" location="f1:3" file="f1" line="3" offset="0" attributes="deprecated"/>
+ <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/Field-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Function-Argument-deprecated.xml.txt b/test/expect/gccxml.any.Function-Argument-deprecated.xml.txt
new file mode 100644
index 0000000..6d4b8e5
--- /dev/null
+++ b/test/expect/gccxml.any.Function-Argument-deprecated.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="[^"]+">
+ <Argument type="_4" location="f1:1" file="f1" line="1" attributes="deprecated"/>
+ </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-Argument-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Function-calling-convention-ms-deprecated.xml.txt b/test/expect/gccxml.any.Function-calling-convention-ms-deprecated.xml.txt
new file mode 100644
index 0000000..345efc2
--- /dev/null
+++ b/test/expect/gccxml.any.Function-calling-convention-ms-deprecated.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="deprecated">
+ <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__ deprecated">
+ <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__ deprecated">
+ <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__ deprecated">
+ <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-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Function-deprecated.xml.txt b/test/expect/gccxml.any.Function-deprecated.xml.txt
new file mode 100644
index 0000000..a8a0426
--- /dev/null
+++ b/test/expect/gccxml.any.Function-deprecated.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="deprecated">
+ <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-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Method-deprecated.xml.txt b/test/expect/gccxml.any.Method-deprecated.xml.txt
new file mode 100644
index 0000000..8665824
--- /dev/null
+++ b/test/expect/gccxml.any.Method-deprecated.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="deprecated">
+ <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-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.OperatorFunction-deprecated.xml.txt b/test/expect/gccxml.any.OperatorFunction-deprecated.xml.txt
new file mode 100644
index 0000000..c410d69
--- /dev/null
+++ b/test/expect/gccxml.any.OperatorFunction-deprecated.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="deprecated">
+ <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-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.OperatorMethod-deprecated.xml.txt b/test/expect/gccxml.any.OperatorMethod-deprecated.xml.txt
new file mode 100644
index 0000000..5a4b10f
--- /dev/null
+++ b/test/expect/gccxml.any.OperatorMethod-deprecated.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="deprecated">
+ <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-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Typedef-deprecated.xml.txt b/test/expect/gccxml.any.Typedef-deprecated.xml.txt
new file mode 100644
index 0000000..48e0f19
--- /dev/null
+++ b/test/expect/gccxml.any.Typedef-deprecated.xml.txt
@@ -0,0 +1,7 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Typedef id="_1" name="start" type="_2" context="_3" location="f1:1" file="f1" line="1" attributes="deprecated"/>
+ <FundamentalType id="_2" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Typedef-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/expect/gccxml.any.Variable-deprecated.xml.txt b/test/expect/gccxml.any.Variable-deprecated.xml.txt
new file mode 100644
index 0000000..a23f9cd
--- /dev/null
+++ b/test/expect/gccxml.any.Variable-deprecated.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="deprecated"/>
+ <FundamentalType id="_2" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Variable-deprecated.cxx"/>
+</GCC_XML>$
diff --git a/test/input/Class-deprecated.cxx b/test/input/Class-deprecated.cxx
new file mode 100644
index 0000000..d914b8d
--- /dev/null
+++ b/test/input/Class-deprecated.cxx
@@ -0,0 +1,3 @@
+class __attribute__((deprecated)) start
+{
+};
diff --git a/test/input/Constructor-deprecated.cxx b/test/input/Constructor-deprecated.cxx
new file mode 100644
index 0000000..70cbe0f
--- /dev/null
+++ b/test/input/Constructor-deprecated.cxx
@@ -0,0 +1,4 @@
+class start
+{
+ __attribute__((deprecated)) start();
+};
diff --git a/test/input/Converter-deprecated.cxx b/test/input/Converter-deprecated.cxx
new file mode 100644
index 0000000..e580e92
--- /dev/null
+++ b/test/input/Converter-deprecated.cxx
@@ -0,0 +1,4 @@
+class start
+{
+ __attribute__((deprecated)) operator int();
+};
diff --git a/test/input/Destructor-deprecated.cxx b/test/input/Destructor-deprecated.cxx
new file mode 100644
index 0000000..620268a
--- /dev/null
+++ b/test/input/Destructor-deprecated.cxx
@@ -0,0 +1,4 @@
+class start
+{
+ __attribute__((deprecated)) ~start();
+};
diff --git a/test/input/Enumeration-deprecated.cxx b/test/input/Enumeration-deprecated.cxx
new file mode 100644
index 0000000..6a3d9c4
--- /dev/null
+++ b/test/input/Enumeration-deprecated.cxx
@@ -0,0 +1,4 @@
+enum __attribute__((deprecated)) start
+{
+ ev0 __attribute__((deprecated))
+};
diff --git a/test/input/Field-deprecated.cxx b/test/input/Field-deprecated.cxx
new file mode 100644
index 0000000..7c12e8f
--- /dev/null
+++ b/test/input/Field-deprecated.cxx
@@ -0,0 +1,4 @@
+class start
+{
+ __attribute__((deprecated)) int field;
+};
diff --git a/test/input/Function-Argument-deprecated.cxx b/test/input/Function-Argument-deprecated.cxx
new file mode 100644
index 0000000..994cc9a
--- /dev/null
+++ b/test/input/Function-Argument-deprecated.cxx
@@ -0,0 +1 @@
+void start(__attribute__((deprecated)) int);
diff --git a/test/input/Function-calling-convention-ms-deprecated.cxx b/test/input/Function-calling-convention-ms-deprecated.cxx
new file mode 100644
index 0000000..3877478
--- /dev/null
+++ b/test/input/Function-calling-convention-ms-deprecated.cxx
@@ -0,0 +1,4 @@
+__attribute__((deprecated)) void __cdecl start(void(__cdecl*)());
+__attribute__((deprecated)) void __stdcall start(void(__stdcall*)());
+__attribute__((deprecated)) void __fastcall start(void(__fastcall*)());
+__attribute__((deprecated)) void __thiscall start(void(__thiscall*)());
diff --git a/test/input/Function-deprecated.cxx b/test/input/Function-deprecated.cxx
new file mode 100644
index 0000000..c36a86e
--- /dev/null
+++ b/test/input/Function-deprecated.cxx
@@ -0,0 +1 @@
+__attribute__((deprecated)) void start(int);
diff --git a/test/input/Method-deprecated.cxx b/test/input/Method-deprecated.cxx
new file mode 100644
index 0000000..356a45f
--- /dev/null
+++ b/test/input/Method-deprecated.cxx
@@ -0,0 +1,4 @@
+class start
+{
+ __attribute__((deprecated)) int method(int);
+};
diff --git a/test/input/OperatorFunction-deprecated.cxx b/test/input/OperatorFunction-deprecated.cxx
new file mode 100644
index 0000000..3f203db
--- /dev/null
+++ b/test/input/OperatorFunction-deprecated.cxx
@@ -0,0 +1,4 @@
+class A;
+namespace start {
+__attribute__((deprecated)) A& operator<<(A&, int);
+}
diff --git a/test/input/OperatorMethod-deprecated.cxx b/test/input/OperatorMethod-deprecated.cxx
new file mode 100644
index 0000000..8ec5b68
--- /dev/null
+++ b/test/input/OperatorMethod-deprecated.cxx
@@ -0,0 +1,4 @@
+class start
+{
+ __attribute__((deprecated)) start& operator<<(int);
+};
diff --git a/test/input/Typedef-deprecated.cxx b/test/input/Typedef-deprecated.cxx
new file mode 100644
index 0000000..d20a211
--- /dev/null
+++ b/test/input/Typedef-deprecated.cxx
@@ -0,0 +1 @@
+typedef int(start) __attribute__((deprecated));
diff --git a/test/input/Variable-deprecated.cxx b/test/input/Variable-deprecated.cxx
new file mode 100644
index 0000000..a837e37
--- /dev/null
+++ b/test/input/Variable-deprecated.cxx
@@ -0,0 +1 @@
+__attribute__((deprecated)) int start;