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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CXX
/
expr
/
p3.cpp
blob
6b243c26cc3155cb7e35399bf685b6b35dfddf84
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
double
operator
+(
double
,
double
);
// expected-error{{overloaded 'operator+' must have at least one parameter of class or enumeration type}}
4
5
struct
A
6
{
7
operator
int
();
8
};
9
10
int
main
()
11
{
12
A a
,
b
;
13
int
i0
=
a
+
1
;
14
int
i1
=
a
+
b
;
15
}