blob: fe0e45d3c6ab186db2c85a3fcdf930b72ee3011a [file] [log] [blame]
Argyrios Kyrtzidise6fe9a22010-11-08 19:14:19 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3// http://llvm.org/PR7905
4namespace PR7905 {
5struct S; // expected-note {{forward declaration}}
6void foo1() {
7 (void)(S[]) {{3}}; // expected-error {{array has incomplete element type}}
8}
9
10template <typename T> struct M { T m; };
11void foo2() {
12 (void)(M<short> []) {{3}};
13}
14}