blob: 6d76f813f8d968b9998a2bb444371f09342cd236 [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001// RUN: %clang_cc1 -fsyntax-only -verify %s
2template<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}