blob: cf6139d0cec7c7f8b440dcb62bfea6517d0eaa26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// RUN: clang-cc -fsyntax-only -verify %s
template<typename T>
struct ImaginaryLiteral0 {
void f(T &x) {
x = 3.0I; // expected-error{{incompatible type}}
}
};
template struct ImaginaryLiteral0<_Complex float>;
template struct ImaginaryLiteral0<int*>; // expected-note{{instantiation}}
|