aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/examples/x.cxx2
-rw-r--r--test/examples/x.cxx.styled2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/examples/x.cxx b/test/examples/x.cxx
index 3c90b5e56..811a4034a 100644
--- a/test/examples/x.cxx
+++ b/test/examples/x.cxx
@@ -7,5 +7,5 @@
int main() {
double x[] = {3.14159,6.02e23,1.6e-19,1.0+1};
int y[] = {75,0113,0x4b};
- printf("hello world %d\n", 9);
+ printf("hello world %d %g\n", y[0], x[0]);
}
diff --git a/test/examples/x.cxx.styled b/test/examples/x.cxx.styled
index a2f33073b..ad259f893 100644
--- a/test/examples/x.cxx.styled
+++ b/test/examples/x.cxx.styled
@@ -7,5 +7,5 @@
{5}int{0} {11}main{10}(){0} {10}{{0}
{11}double{0} {11}x{10}[]{0} {10}={0} {10}{{4}3.14159{10},{4}6.02e23{10},{4}1.6e-19{10},{4}1.0{10}+{4}1{10}};{0}
{5}int{0} {11}y{10}[]{0} {10}={0} {10}{{4}75{10},{4}0113{10},{4}0x4b{10}};{0}
- {11}printf{10}({6}"hello world %d\n"{10},{0} {4}9{10});{0}
+ {11}printf{10}({6}"hello world %d %g\n"{10},{0} {11}y{10}[{4}0{10}],{0} {11}x{10}[{4}0{10}]);{0}
{10}}{0}