xref: /aosp_15_r20/external/clang/test/SemaCXX/unary-real-imag.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 struct A {};
4 int i = __real__ A(); // expected-error {{invalid type 'A' to __real operator}}
5 int j = __imag__ A(); // expected-error {{invalid type 'A' to __imag operator}}
6 
7