1// 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} 15