Add attribute "format" support for typedefs of function pointers.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50906 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/format-attribute.c b/test/Sema/format-attribute.c
index 8eefe3f..ecdef9d 100644
--- a/test/Sema/format-attribute.c
+++ b/test/Sema/format-attribute.c
@@ -22,3 +22,5 @@
   int (*printf)(const char *format, ...) __attribute__((__format__(printf, 1, 2))); // no-error
   int (*printf2)(double format, ...) __attribute__((__format__(printf, 1, 2))); // expected-error {{format argument not a string type}}
 };
+
+typedef int (*f3_ptr)(char*,...) __attribute__((format(printf,1,0))); // no-error