repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
unary-real-imag.cpp
blob
91b63e37b9a43a88547604db0d97eb82654854dd
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