summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/test/Sema/function.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Sema/function.c b/clang/test/Sema/function.c
index 677f6a3f0e2..494a8b841d2 100644
--- a/clang/test/Sema/function.c
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud