aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/preproc/struct.h
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2010-01-26 10:31:14 +0000
committerMichael Meskes <meskes@postgresql.org>2010-01-26 10:31:14 +0000
commitc651c0eb01a7a986b04e5e022f7960db4cbdf720 (patch)
tree42d563f0540fabdbac37178bfeef20e4f58ae505 /src/interfaces/ecpg/test/preproc/struct.h
parent96b8d5842cd6e991a44a01c128b1c3de821e882b (diff)
downloadpostgresql-c651c0eb01a7a986b04e5e022f7960db4cbdf720.tar.gz
postgresql-c651c0eb01a7a986b04e5e022f7960db4cbdf720.zip
Added test case that was part of Zoltan's patch but apparently wasn't part of my commit.
Diffstat (limited to 'src/interfaces/ecpg/test/preproc/struct.h')
-rw-r--r--src/interfaces/ecpg/test/preproc/struct.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/test/preproc/struct.h b/src/interfaces/ecpg/test/preproc/struct.h
new file mode 100644
index 00000000000..cc4681b74fe
--- /dev/null
+++ b/src/interfaces/ecpg/test/preproc/struct.h
@@ -0,0 +1,18 @@
+
+struct mytype {
+ int id;
+ char t[64];
+ double d1; /* dec_t */
+ double d2;
+ char c[30];
+};
+typedef struct mytype MYTYPE;
+
+struct mynulltype {
+ int id;
+ int t;
+ int d1;
+ int d2;
+ int c;
+};
+typedef struct mynulltype MYNULLTYPE;