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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
asm-6.c
blob
10983c77c5537b77fbfbfab25a3047257617fc90
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
}