Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 template<typename T> struct S {
      3   S(int);
      4 };
      5 
      6 struct T; // expected-note{{forward declaration of 'T'}}
      7 
      8 void f() {
      9   S<int> s0 = static_cast<S<int> >(0);
     10   S<void*> s1 = static_cast<S<void*> >(00);
     11 
     12   (void)static_cast<T>(10); // expected-error{{'T' is an incomplete type}}
     13 }
     14