From 009b1c42aa6266385f2c37e227516b24077e6dd7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:52:33 +0000 Subject: Import LLVM, at r72732. --- test/FrontendC/2007-02-16-VariableSizeStructArg.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/FrontendC/2007-02-16-VariableSizeStructArg.c (limited to 'test/FrontendC/2007-02-16-VariableSizeStructArg.c') diff --git a/test/FrontendC/2007-02-16-VariableSizeStructArg.c b/test/FrontendC/2007-02-16-VariableSizeStructArg.c new file mode 100644 index 0000000000000..ec6971acdb103 --- /dev/null +++ b/test/FrontendC/2007-02-16-VariableSizeStructArg.c @@ -0,0 +1,7 @@ +// RUN: %llvmgcc -S -w %s -o - +// PR1170 +int f(int a, struct {int b[a];} c) { return c.b[0]; } + +int g(struct {int b[1];} c) { + return c.b[0]; +} -- cgit v1.2.3