summaryrefslogtreecommitdiffstats
path: root/test/input
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-26 19:43:37 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-21 21:04:46 (GMT)
commit55269737375c2168ac991e05f3fcd3777e4058b9 (patch)
tree9d28cbe52eb32780b76e3992ab7f0b50718a58ec /test/input
parent3edc5417f57d93f4a21ad185699e37c20576e71e (diff)
downloadCastXML-55269737375c2168ac991e05f3fcd3777e4058b9.zip
CastXML-55269737375c2168ac991e05f3fcd3777e4058b9.tar.gz
CastXML-55269737375c2168ac991e05f3fcd3777e4058b9.tar.bz2
test: Add cases for Method, OperatorMethod, and OperatorFunction
Use operator name "<<" and verify that the word "operator" does not appear in the name as is the case in original gccxml.
Diffstat (limited to 'test/input')
-rw-r--r--test/input/Method.cxx3
-rw-r--r--test/input/OperatorFunction.cxx4
-rw-r--r--test/input/OperatorMethod.cxx3
3 files changed, 10 insertions, 0 deletions
diff --git a/test/input/Method.cxx b/test/input/Method.cxx
new file mode 100644
index 0000000..eba4254
--- /dev/null
+++ b/test/input/Method.cxx
@@ -0,0 +1,3 @@
+class start {
+ int method(int);
+};
diff --git a/test/input/OperatorFunction.cxx b/test/input/OperatorFunction.cxx
new file mode 100644
index 0000000..75125a2
--- /dev/null
+++ b/test/input/OperatorFunction.cxx
@@ -0,0 +1,4 @@
+class A;
+namespace start {
+ A& operator<<(A&, int);
+}
diff --git a/test/input/OperatorMethod.cxx b/test/input/OperatorMethod.cxx
new file mode 100644
index 0000000..36a76c2
--- /dev/null
+++ b/test/input/OperatorMethod.cxx
@@ -0,0 +1,3 @@
+class start {
+ start& operator<<(int);
+};