From baa2c40edb2321cafff673b62bb51eefbbb6e93b Mon Sep 17 00:00:00 2001 From: Nick Hildenbrandt Date: Thu, 31 Oct 2002 18:23:09 +0000 Subject: CBE doesn't alloc correctly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4474 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CBackend/2002-10-30-FunctionPointerAlloca.ll | 10 ++++++++++ test/CBackend/Makefile | 4 ++-- test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll | 10 ++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 test/CBackend/2002-10-30-FunctionPointerAlloca.ll create mode 100644 test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll (limited to 'test') diff --git a/test/CBackend/2002-10-30-FunctionPointerAlloca.ll b/test/CBackend/2002-10-30-FunctionPointerAlloca.ll new file mode 100644 index 0000000000..2e21ee75f3 --- /dev/null +++ b/test/CBackend/2002-10-30-FunctionPointerAlloca.ll @@ -0,0 +1,10 @@ + + %BitField = type int + %tokenptr = type %BitField* + +implementation + +void %test() { + %pmf1 = alloca %tokenptr (%tokenptr, sbyte*)* + ret void +} diff --git a/test/CBackend/Makefile b/test/CBackend/Makefile index 5ee4ba741c..d3ce4435e8 100644 --- a/test/CBackend/Makefile +++ b/test/CBackend/Makefile @@ -15,9 +15,9 @@ all:: $(addprefix Output/, $(TESTS:%.ll=%.to)) Output/%.to: Output/%.c - $(CC) -c -W -Wall $< -o $@ || \ + $(CC) -c $< -o $@ #|| \ (rm -f $@; $(FAILURE) $@ ) Output/%.c: %.ll Output/.dir $(LAS) $(LDIS) - $(LAS) < $< | $(LDIS) -c > $@ || \ + $(LAS) < $< | $(LDIS) -c > $@ #|| \ (rm -f $@; $(FAILURE) $@ ) diff --git a/test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll b/test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll new file mode 100644 index 0000000000..2e21ee75f3 --- /dev/null +++ b/test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll @@ -0,0 +1,10 @@ + + %BitField = type int + %tokenptr = type %BitField* + +implementation + +void %test() { + %pmf1 = alloca %tokenptr (%tokenptr, sbyte*)* + ret void +} -- cgit v1.2.3