THRIFT-1532/THRIFT-1475 - fix record generation for erlang

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303663 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/erl/Makefile.am b/lib/erl/Makefile.am
index 8cd2ca0..9505024 100644
--- a/lib/erl/Makefile.am
+++ b/lib/erl/Makefile.am
@@ -71,7 +71,8 @@
 		  test/thriftTest_* \
 		  test/optionalRequiredTest_* \
 		  test/yowza_* \
-		  test/reverseOrderService_*
+		  test/reverseOrderService_* \
+		  test/manyOptionals_*
 	./rebar clean
 
 maintainer-clean-local:
diff --git a/lib/erl/test/Thrift1475.thrift b/lib/erl/test/Thrift1475.thrift
new file mode 100644
index 0000000..4aa7f72
--- /dev/null
+++ b/lib/erl/test/Thrift1475.thrift
@@ -0,0 +1,22 @@
+struct StructA
+{
+  1: string a,
+  2: binary b,
+  3: optional string c,
+  4: optional binary d,
+  5: required string e,
+  6: required binary f,
+  7: string g = "foo",
+  8: i32 h,
+  9: optional i32 i,
+  10: required i32 j,
+  11: required i32 k = 5,
+  12: double l,
+  13: optional double m,
+  14: required double n,
+  15: double o = 3.14159,
+  16: list<string> string_list,
+  17: list<byte> byte_list = [1, 2, 3],
+  18: set<string> string_set,
+  19: map<string, string> string_map
+}