aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-03-25 20:31:40 +1100
committernyamatongwe <devnull@localhost>2012-03-25 20:31:40 +1100
commitfe14077c459e25fc231c78e25ffc237251b758bb (patch)
tree2d772a23ccee6a1275e668c3fccfda4ad273a371
parentbb1e285e9037f9fec00527769b76d7b71971886e (diff)
downloadscintilla-mirror-fe14077c459e25fc231c78e25ffc237251b758bb.tar.gz
Add test for bug #3509317.
-rw-r--r--test/examples/x.cxx4
-rw-r--r--test/examples/x.cxx.styled4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/examples/x.cxx b/test/examples/x.cxx
index fee6893a6..3c90b5e56 100644
--- a/test/examples/x.cxx
+++ b/test/examples/x.cxx
@@ -1,5 +1,9 @@
// A demonstration program
#include <stdio.h>
+#if 0
+#define DUMMY() \
+ if (1);
+#endif
int main() {
double x[] = {3.14159,6.02e23,1.6e-19,1.0+1};
int y[] = {75,0113,0x4b};
diff --git a/test/examples/x.cxx.styled b/test/examples/x.cxx.styled
index 9b9caf87d..a2f33073b 100644
--- a/test/examples/x.cxx.styled
+++ b/test/examples/x.cxx.styled
@@ -1,5 +1,9 @@
{2}// A demonstration program
{9}#include <stdio.h>
+#if 0
+{73}#define DUMMY() \
+ if (1);
+{9}#endif
{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}