mirror of https://github.com/microsoft/clang.git
Extend test-case as requested by Eli
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec3bd728cc
commit
72b8f78814
|
@ -11,4 +11,8 @@ void f(int N) {
|
|||
|
||||
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]')}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue