diff options
author | Brad King <brad.king@kitware.com> | 2014-02-26 19:43:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-21 21:04:46 (GMT) |
commit | 55269737375c2168ac991e05f3fcd3777e4058b9 (patch) | |
tree | 9d28cbe52eb32780b76e3992ab7f0b50718a58ec /test/input | |
parent | 3edc5417f57d93f4a21ad185699e37c20576e71e (diff) | |
download | CastXML-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.cxx | 3 | ||||
-rw-r--r-- | test/input/OperatorFunction.cxx | 4 | ||||
-rw-r--r-- | test/input/OperatorMethod.cxx | 3 |
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); +}; |