From 3ac8f5b042091d4d80c06a6549fc0a80284bee60 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 4 Feb 2007 23:55:04 +0000 Subject: [PATCH] testcase for PR1175 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33891 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2007-02-04-EmptyStruct.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/CFrontend/2007-02-04-EmptyStruct.c diff --git a/test/CFrontend/2007-02-04-EmptyStruct.c b/test/CFrontend/2007-02-04-EmptyStruct.c new file mode 100644 index 00000000000..48ad31f7c3f --- /dev/null +++ b/test/CFrontend/2007-02-04-EmptyStruct.c @@ -0,0 +1,9 @@ +// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm +// PR1175 + +struct empty { }; + +void foo(struct empty *p) { + p++; +} +