[cfe-commits] r147974 - /cfe/trunk/test/Sema/c11-typedef-redef.c
Douglas Gregor
dgregor at apple.com
Wed Jan 11 14:43:46 PST 2012
Author: dgregor
Date: Wed Jan 11 16:43:46 2012
New Revision: 147974
URL: http://llvm.org/viewvc/llvm-project?rev=147974&view=rev
Log:
Extend test-case as requested by Eli
Modified:
cfe/trunk/test/Sema/c11-typedef-redef.c
Modified: cfe/trunk/test/Sema/c11-typedef-redef.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/c11-typedef-redef.c?rev=147974&r1=147973&r2=147974&view=diff
==============================================================================
--- cfe/trunk/test/Sema/c11-typedef-redef.c (original)
+++ cfe/trunk/test/Sema/c11-typedef-redef.c Wed Jan 11 16:43:46 2012
@@ -11,4 +11,8 @@
typedef int vla[N]; // expected-note{{previous definition is here}}
typedef int vla[N]; // expected-error{{redefinition of typedef for variably-modified type 'int [N]'}}
+
+ typedef int vla2[N];
+ typedef vla2 vla3; // expected-note{{previous definition is here}}
+ typedef vla2 vla3; // expected-error{{redefinition of typedef for variably-modified type 'vla2' (aka 'int [N]')}}
}
More information about the cfe-commits
mailing list