summaryrefslogtreecommitdiff
path: root/t/t4018/cpp-function-returning-reference
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j6t@kdbg.org>2014-03-21 22:07:21 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-21 15:03:31 -0700
commit9cc444f0570b196f1c51664ce2de1d8e1dee6046 (patch)
tree25d9d417c6431219a1324c33ae250e8848744b00 /t/t4018/cpp-function-returning-reference
parentt4018: test cases for the built-in cpp pattern (diff)
downloadtgif-9cc444f0570b196f1c51664ce2de1d8e1dee6046.tar.xz
t4018: test cases showing that the cpp pattern misses many anchor points
Most of the tests show C++ code, but there is also a union definition and a GNU style function definition that are not recognized. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/cpp-function-returning-reference')
-rw-r--r--t/t4018/cpp-function-returning-reference5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t4018/cpp-function-returning-reference b/t/t4018/cpp-function-returning-reference
new file mode 100644
index 0000000000..29e2bd4632
--- /dev/null
+++ b/t/t4018/cpp-function-returning-reference
@@ -0,0 +1,5 @@
+string& get::it::RIGHT(char *ptr)
+{
+ ChangeMe;
+ broken;
+}