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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
i386-pic-1.c
blob
4c548bf1cd60bb420ca741cf3ecc90cbb1ed803c
1
/* PR target/8340 */
2
/* { dg-do compile { target i?86-*-* } } */
3
/* { dg-options "-fPIC" } */
4
5
int
foo
()
6
{
7
static int
a
;
8
9
__asm__
__volatile__
(
/* { dg-error "PIC register" } */
10
"xorl %%ebx, %%ebx
\n
"
11
"movl %%ebx, %0
\n
"
12
:
"=m"
(
a
)
13
:
14
:
"%ebx"
15
);
16
17
return
a
;
18
}