aboutsummaryrefslogtreecommitdiff
path: root/tests/compiler
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-05 18:08:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-05 18:08:28 +0200
commit490accaef42ac7a15c56c0252e1e266631534d8a (patch)
tree21223fac6a1ea7f8b2ac0b989101f7cc24429bee /tests/compiler
parentda17cddd8fe5ab873de06eede24a6faa13e5eab9 (diff)
Fix a mis-indentation bug in C++ indenter
Diffstat (limited to 'tests/compiler')
-rw-r--r--tests/compiler/cxx-indenter/driver.cxx6
-rw-r--r--tests/compiler/cxx-indenter/output.std6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/compiler/cxx-indenter/driver.cxx b/tests/compiler/cxx-indenter/driver.cxx
index f14a6dd..180187a 100644
--- a/tests/compiler/cxx-indenter/driver.cxx
+++ b/tests/compiler/cxx-indenter/driver.cxx
@@ -101,4 +101,10 @@ main ()
<< "}"
<< "while (false);"
<< endl;
+
+ os << "{"
+ << "f (\"CREATE TABLE \\\"test\\\" (\"" << endl
+ << "\"'id',\"" << endl
+ << "\"'name')\");"
+ << "}";
}
diff --git a/tests/compiler/cxx-indenter/output.std b/tests/compiler/cxx-indenter/output.std
index 1a22bc7..f90f365 100644
--- a/tests/compiler/cxx-indenter/output.std
+++ b/tests/compiler/cxx-indenter/output.std
@@ -73,3 +73,9 @@ do
}
while (false);
+{
+ f ("CREATE TABLE \"test\" ("
+ "'id',"
+ "'name')");
+}
+