[llvm-commits] [poolalloc] r107901 - /poolalloc/trunk/test/dsa/regression/2010-07-08.FPDeclaration.c
Will Dietz
wdietz2 at illinois.edu
Thu Jul 8 13:08:05 PDT 2010
Author: wdietz2
Date: Thu Jul 8 15:08:05 2010
New Revision: 107901
URL: http://llvm.org/viewvc/llvm-project?rev=107901&view=rev
Log:
Added test case where DSA crashes when processing an indirect call to an external function.
Added:
poolalloc/trunk/test/dsa/regression/2010-07-08.FPDeclaration.c
Added: poolalloc/trunk/test/dsa/regression/2010-07-08.FPDeclaration.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/regression/2010-07-08.FPDeclaration.c?rev=107901&view=auto
==============================================================================
--- poolalloc/trunk/test/dsa/regression/2010-07-08.FPDeclaration.c (added)
+++ poolalloc/trunk/test/dsa/regression/2010-07-08.FPDeclaration.c Thu Jul 8 15:08:05 2010
@@ -0,0 +1,12 @@
+//Test that DSA doesn't crash when processing an indirect call to an external function.
+//RUN: llvm-gcc -S --emit-llvm -c %s -o %t.bc
+//RUN: dsaopt %t.bc -dsa-td -disable-output
+
+extern void func(void);
+
+int main() {
+ void (*fp)(void) = func;
+ fp();
+ return 0;
+}
+
More information about the llvm-commits
mailing list