repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
asm-6.c
blob
9c0ac1eb27e4908b9a3e1609406c7ea046fae43c
1
/* Check error messages for named asm operands. */
2
void
foo
()
3
{
4
int
i
;
5
__asm__
(
""
: [
data
]
"=r"
(
i
) : [
data
]
"i"
(
100
));
/* { dg-error "duplicate asm operand" } */
6
__asm__
(
"%[foo]"
:: [
bar
]
"i"
(
1
));
/* { dg-error "undefined named operand" } */
7
}