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
LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr23200.c
blob
56bf59c861ae1cdc53e56f4d4d9c912ef50795ed
1
/* PR inline-asm/23200 */
2
/* { dg-do compile { target nonpic } } */
3
/* { dg-options "-O0" } */
4
5
static char
var
;
6
7
void
8
foo
(
void
)
9
{
10
asm
volatile
(
""
::
"i"
(&
var
+
1
));
11
}
12
13
typedef
int
T
[];
14
typedef
T
*
P
;
15
16
int
var2
;
17
18
void
19
bar
(
void
)
20
{
21
asm
volatile
(
""
::
"i"
(&(*(
P
)&
var2
)[
1
]));
22
}