[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-11-27-StaticFunctionRedeclare.c

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 27 16:06:21 PST 2004



Changes in directory llvm/test/Regression/CFrontend:

2004-11-27-StaticFunctionRedeclare.c added (r1.1)
---
Log message:

New testcase for PR244: http://llvm.cs.uiuc.edu/PR244 


---
Diffs of the changes:  (+14 -0)

Index: llvm/test/Regression/CFrontend/2004-11-27-StaticFunctionRedeclare.c
diff -c /dev/null llvm/test/Regression/CFrontend/2004-11-27-StaticFunctionRedeclare.c:1.1
*** /dev/null	Sat Nov 27 18:06:17 2004
--- llvm/test/Regression/CFrontend/2004-11-27-StaticFunctionRedeclare.c	Sat Nov 27 18:06:07 2004
***************
*** 0 ****
--- 1,14 ----
+ // RUN: %llvmgcc -S 2004-11-27-StaticFunctionRedeclare.c -o - | gccas | llvm-dis | not grep 'declare int.*func'
+ 
+ // There should not be an unresolved reference to func here.  Believe it or not,
+ // the "expected result" is a function named 'func' which is internal and 
+ // referenced by bar().
+ 
+ // This is PR244
+ 
+ static int func();
+ void bar() {
+   int func();
+   foo(func);
+ }
+ static int func(char** A, char ** B) {}






More information about the llvm-commits mailing list