blob: 91b63e37b9a43a88547604db0d97eb82654854dd [file] [log] [blame]
Eli Friedman957c0942010-09-05 23:15:52 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3struct A {};
4int i = __real__ A(); // expected-error {{invalid type 'A' to __real operator}}
5int j = __imag__ A(); // expected-error {{invalid type 'A' to __imag operator}}
6