14 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2template<typename T> struct S {3 S(int);4};5 6struct T; // expected-note{{forward declaration of 'T'}}7 8void 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