aboutsummaryrefslogtreecommitdiff
path: root/tests/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compiler')
-rw-r--r--tests/compiler/cxx-indenter/driver.cxx5
-rw-r--r--tests/compiler/cxx-indenter/output.std15
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/compiler/cxx-indenter/driver.cxx b/tests/compiler/cxx-indenter/driver.cxx
index 511b6d4..665c6ab 100644
--- a/tests/compiler/cxx-indenter/driver.cxx
+++ b/tests/compiler/cxx-indenter/driver.cxx
@@ -115,6 +115,11 @@ main ()
<< "\"'name')\");"
<< "}";
+ os << "namespace N"
+ << "{"
+ << "static int i[] = {{0,\n0},{1,\n1}};"
+ << "}";
+
/*
@@ TODO: still misindents (if-else association problem)
diff --git a/tests/compiler/cxx-indenter/output.std b/tests/compiler/cxx-indenter/output.std
index 0e59a26..79e74f4 100644
--- a/tests/compiler/cxx-indenter/output.std
+++ b/tests/compiler/cxx-indenter/output.std
@@ -86,3 +86,18 @@ while (false);
"'name')");
}
+namespace N
+{
+ static int i[] =
+ {
+ {
+ 0,
+ 0
+ },
+ {
+ 1,
+ 1
+ }
+ };
+}
+