Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 // http://llvm.org/PR7905
      4 namespace PR7905 {
      5 struct S; // expected-note {{forward declaration}}
      6 void foo1() {
      7   (void)(S[]) {{3}}; // expected-error {{array has incomplete element type}}
      8 }
      9 
     10 template <typename T> struct M { T m; };
     11 void foo2() {
     12   (void)(M<short> []) {{3}};
     13 }
     14 }
     15