[llvm-commits] CVS: llvm/test/CFrontend/2007-04-24-VolatileStructCopy.c

Chris Lattner sabre at nondot.org
Tue Apr 24 17:26:24 PDT 2007



Changes in directory llvm/test/CFrontend:

2007-04-24-VolatileStructCopy.c added (r1.1)
---
Log message:

testcase for PR1352: http://llvm.org/PR1352 


---
Diffs of the changes:  (+10 -0)

 2007-04-24-VolatileStructCopy.c |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/CFrontend/2007-04-24-VolatileStructCopy.c
diff -c /dev/null llvm/test/CFrontend/2007-04-24-VolatileStructCopy.c:1.1
*** /dev/null	Tue Apr 24 19:26:15 2007
--- llvm/test/CFrontend/2007-04-24-VolatileStructCopy.c	Tue Apr 24 19:26:05 2007
***************
*** 0 ****
--- 1,10 ----
+ // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {volatile store}
+ // PR1352
+ 
+ struct foo {
+   int x;
+ };
+ 
+ void copy(volatile struct foo *p, struct foo *q) {
+   *p = *q;
+ }






More information about the llvm-commits mailing list