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
[RISCV] Simplify usage of SplatPat_simm5_plus1. NFC (#125340)
[llvm-project.git]
/
clang
/
test
/
Interpreter
/
multiline.cpp
blob
0f5ef48417f133d6b18399e6712633c09fa8730b
1
// REQUIRES: host-supports-jit
2
// UNSUPPORTED: system-aix
3
// RUN: cat %s | clang-repl -Xcc -Xclang -Xcc -verify | FileCheck %s
4
5
// expected-no-diagnostics
6
7
extern
"C"
int
printf
(
const char
*,...);
8
int
i
=
\
9
12
;
10
11
printf
(
"i=%d
\n
"
,
i
);
12
// CHECK: i=12
13
14
void
f
(
int
x
)
\
15
{
\
16
printf
(
"x=\
17
%d"
,
x
);
\
18
}
19
f
(
i
);
20
// CHECK: x=12
21
22
#if 0 \
23
#error
"Can't be!"
\
24
#endif
25