in:
typedef void foo(void);
We get a typedef for a functiontypeproto with no arguments, not
one with one argument and type void. This means the code being
removed in SemaDecl is dead.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70013 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/function.c b/test/Sema/function.c
index 77557c9..a1dd8b6 100644
--- a/test/Sema/function.c
+++ b/test/Sema/function.c
@@ -76,4 +76,7 @@
inline foo_t invalid_type() { // expected-error {{unknown type name 'foo_t'}}
}
+typedef void fn_t(void);
+fn_t t17;
+