[cfe-commits] r63749 - /cfe/trunk/test/Sema/function.c

Eli Friedman eli.friedman at gmail.com
Wed Feb 4 10:50:01 PST 2009


Author: efriedma
Date: Wed Feb  4 12:50:00 2009
New Revision: 63749

URL: http://llvm.org/viewvc/llvm-project?rev=63749&view=rev
Log:
Test for PR3137.


Modified:
    cfe/trunk/test/Sema/function.c

Modified: cfe/trunk/test/Sema/function.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/function.c?rev=63749&r1=63748&r2=63749&view=diff

==============================================================================
--- cfe/trunk/test/Sema/function.c (original)
+++ cfe/trunk/test/Sema/function.c Wed Feb  4 12:50:00 2009
@@ -43,3 +43,13 @@
 // <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;
+}





More information about the cfe-commits mailing list