Fix crasher in ASTContext::getObjCEncodingForMethodDecl().

This was exposed as a result of something else that was recently fixed.

llvm-svn: 69004
diff --git a/clang/test/CodeGen/function-decay.m b/clang/test/CodeGen/function-decay.m
new file mode 100644
index 0000000..9c87113
--- /dev/null
+++ b/clang/test/CodeGen/function-decay.m
@@ -0,0 +1,10 @@
+// RUN: clang-cc %s -emit-llvm
+
+@interface I0 @end
+@implementation I0
+- (void) im0: (int (void)) a0 {
+}
+@end
+
+void func(int pf(void)) {
+}