aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-02-04 18:50:00 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-02-04 18:50:00 +0000
commit0e8aaaf67b0c172e5a55cded30b80a83d3bd477f (patch)
treea9549bea71cc0f067585c0ef970c485c2d34f1e0
parent47b9a1ca55e61e37f5a368740e29de190345acc6 (diff)
Test for PR3137.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63749 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Sema/function.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c
index 677f6a3f0e..494a8b841d 100644
--- a/test/Sema/function.c
+++ b/test/Sema/function.c
@@ -43,3 +43,13 @@ int t14() {
// <rdar://problem/6097326>
y(y) { return y; } // expected-warning{{parameter 'y' was not declared, defaulting to type 'int'}} \
// expected-warning{{type specifier missing, defaults to 'int'}}
+
+
+// PR3137
+extern int g0_3137(void);
+void f0_3137() {
+ int g0_3137(void);
+}
+void f1_3137() {
+ int (*fp)(void) = g0_3137;
+}