aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll')
-rw-r--r--test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll12
1 files changed, 12 insertions, 0 deletions
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 0000000..b887488
--- /dev/null
+++ b/test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
+
+
+ %BitField = type int
+ %tokenptr = type %BitField*
+
+implementation
+
+void %test() {
+ %pmf1 = alloca %tokenptr (%tokenptr, sbyte*)*
+ ret void
+}