summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/c89.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-10 02:26:16 +0000
committerChris Lattner <sabre@nondot.org>2008-04-10 02:26:16 +0000
commit0e91b419023b9270ee6cc36982bebb4e68f4a837 (patch)
tree4173f19944d5ad94d8031faf5fdd8142550aa8ce /clang/test/Sema/c89.c
parent58258246ec920a7c83f8c2fd8b46646f8336f68b (diff)
downloadbcm5719-llvm-0e91b419023b9270ee6cc36982bebb4e68f4a837.tar.gz
bcm5719-llvm-0e91b419023b9270ee6cc36982bebb4e68f4a837.zip
typedef void T;
void f(T); is only invalid in C++ mode, not C89 mode. llvm-svn: 49460
Diffstat (limited to 'clang/test/Sema/c89.c')
-rw-r--r--clang/test/Sema/c89.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Sema/c89.c b/clang/test/Sema/c89.c
index 920251535d4..70949f0c82d 100644
--- a/clang/test/Sema/c89.c
+++ b/clang/test/Sema/c89.c
@@ -55,5 +55,7 @@ void z;
{ bar (&z); }
typedef void T;
-void foo(T); /* expected-warning {{empty parameter list defined with a typedef of 'void' is a C99 feature}} */
+void foo(T); /* typedef for void is allowed */
+
+void foo(void) {}
OpenPOWER on IntegriCloud