Fix a bogus test
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46602 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/function.c b/test/Sema/function.c
index 17cc86e..7e593d4 100644
--- a/test/Sema/function.c
+++ b/test/Sema/function.c
@@ -13,3 +13,13 @@
void g(int (*compar)()) {
}
+
+// PR1965
+int t5(b); // expected-error {{parameter list without types}}
+int t6(int x, g); // expected-error {{type specifier required for parameter 'g'}}
+
+int t7(, ); // expected-error {{type specifier required}} expected-error {{type specifier required}}
+int t8(, int a); // expected-error {{type specifier required}}
+int t9(int a, ); // expected-error {{type specifier required}}
+
+
diff --git a/test/Sema/return-stack-addr.cpp b/test/Sema/return-stack-addr.cpp
index 5506f2f..c7d1a7f 100644
--- a/test/Sema/return-stack-addr.cpp
+++ b/test/Sema/return-stack-addr.cpp
@@ -105,7 +105,7 @@
return reinterpret_cast<int*>(x); // no-warning
}
-int* ret_cpp_const_cast(const x) {
+int* ret_cpp_const_cast(const int x) {
return const_cast<int*>(&x); // expected-warning {{address of stack memory}}
}