New testcase for structure argument problems.
authorChris Lattner <sabre@nondot.org>
Sun, 15 Dec 2002 17:46:18 +0000 (17:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Dec 2002 17:46:18 +0000 (17:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5042 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2002-12-15-StructParameters.c [new file with mode: 0644]

diff --git a/test/CFrontend/2002-12-15-StructParameters.c b/test/CFrontend/2002-12-15-StructParameters.c
new file mode 100644 (file)
index 0000000..64e5df3
--- /dev/null
@@ -0,0 +1,16 @@
+typedef struct
+{
+  void *stack;
+  unsigned size;
+  unsigned avail;
+} compile_stack_type;
+
+void foo(void*);
+void bar(compile_stack_type T, unsigned);
+
+void test() {
+  compile_stack_type CST;
+  foo(&CST);
+
+  bar(CST, 12);
+}