From 432aeb74d5a49e6f0efd1063113cef099c93aef6 Mon Sep 17 00:00:00 2001 From: murphy Date: Mon, 28 Dec 2009 07:27:12 +0000 Subject: Copying changes and fixes for 0.9.0rc3 from terminal-encoder branch over to trunk. --- test/scanners/cpp/elvis.in.cpp | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'test/scanners/cpp/elvis.in.cpp') diff --git a/test/scanners/cpp/elvis.in.cpp b/test/scanners/cpp/elvis.in.cpp index e23f86e..9cdd574 100644 --- a/test/scanners/cpp/elvis.in.cpp +++ b/test/scanners/cpp/elvis.in.cpp @@ -1 +1,26 @@ -this?is+no:label +This?is+no:label; + +// This is only one label: +label: switch (TYPE(v)) { + case T_CLASS: case T_MODULE: + rb_str_append(s, rb_inspect(v)); + break; + default: + rb_str_append(s, rb_any_to_s(v)); + break; +} +// These are two labels. +function(call); +label2: label3: a = b + c; + +// Another label. +if (1) { + label4: a = b + c; +} + +// Not a label. +test( + a? + b: + c +) \ No newline at end of file -- cgit v1.2.1