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
/
Sema
/
heinous-extensions-off.c
blob
beaf2dcbccaf96eb52663561d8a69522c6fda01a
1
// RUN: %clang_cc1 %s -verify
2
3
int
foo
(
void
) {
4
int
a
;
5
// PR3788
6
asm
(
"nop"
: :
"m"
((
int
)(
a
)));
// expected-error {{cast in a inline asm context requiring an lvalue}}
7
// PR3794
8
asm
(
"nop"
:
"=r"
((
unsigned
)
a
));
// expected-error {{cast in a inline asm context requiring an lvalue}}
9
}
10