Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
llvm
/
71287953e60d3437b51a69fd3f016b03f5011c52
/
.
/
test
/
FrontendC
/
2007-04-24-VolatileStructCopy.c
blob: 4765921f1d21102e90baa0a09038e3ea2106638e [
file
] [
log
] [
blame
]
Dan Gohman
f17a25c
2007-07-18 16:29:46 +0000
[
diff
] [
blame
]
1
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {volatile store}
2
// PR1352
3
4
struct
foo
{
5
int
x
;
6
};
7
8
void
copy
(
volatile
struct
foo
*
p
,
struct
foo
*
q
)
{
9
*
p
=
*
q
;
10
}