Douglas Gregor | d8ac436 | 2009-05-18 22:38:38 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
3 | template<typename T> | ||||
4 | struct ImaginaryLiteral0 { | ||||
5 | void f(T &x) { | ||||
6 | x = 3.0I; // expected-error{{incompatible type}} | ||||
7 | } | ||||
8 | }; | ||||
9 | |||||
10 | template struct ImaginaryLiteral0<_Complex float>; | ||||
11 | template struct ImaginaryLiteral0<int*>; // expected-note{{instantiation}} |