diff options
author | Eric Christopher <echristo@apple.com> | 2011-07-26 00:57:50 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-07-26 00:57:50 +0000 |
commit | e6051006ba15b9dd9d43b8f6d545c98d5d74ec6a (patch) | |
tree | bc473cd75e2a39aa6cacf738e004c6d45a86ed39 /clang/test/CodeGen/2007-04-24-VolatileStructCopy.c | |
parent | 5387bd340ba6ade97d67baafe1652b6f98cfbcf2 (diff) | |
download | bcm5719-llvm-e6051006ba15b9dd9d43b8f6d545c98d5d74ec6a.tar.gz bcm5719-llvm-e6051006ba15b9dd9d43b8f6d545c98d5d74ec6a.zip |
Migrate and FileCheck-ize some of:
2003-09-18-BitfieldTests.c 2007-04-11-PR1321.c 2003-11-13-TypeSafety.c 2003-08-29-StructLayoutBug.c 2010-05-14-Optimized-VarType.c 2003-10-06-NegateExprType.c 2007-06-05-NoInlineAttribute.c 2011-03-31-ArrayRefFolding.c 2010-07-14-ref-off-end.c Atomics-no64bit.c 2007-05-11-str-const.c 2004-11-27-InvalidConstantExpr.c 2007-04-05-UnPackedStruct.c 2004-03-15-SimpleIndirectGoto.c 2004-01-08-ExternInlineRedefine.c sret2.c 2007-02-07-AddrLabel.c 2002-09-19-StarInLabel.c 2003-11-16-StaticArrayInit.c 2003-08-18-SigSetJmp.c 2007-04-24-VolatileStructCopy.c 2002-07-29-Casts.c 2005-06-15-ExpandGotoInternalProblem.c 2007-09-17-WeakRef.c 2007-04-24-str-const.c 2003-08-30-LargeIntegerBitfieldMember.c inline-asm-mrv.c
from llvm/test/FrontendC.
llvm-svn: 136035
Diffstat (limited to 'clang/test/CodeGen/2007-04-24-VolatileStructCopy.c')
-rw-r--r-- | clang/test/CodeGen/2007-04-24-VolatileStructCopy.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2007-04-24-VolatileStructCopy.c b/clang/test/CodeGen/2007-04-24-VolatileStructCopy.c new file mode 100644 index 00000000000..5eeecce99d2 --- /dev/null +++ b/clang/test/CodeGen/2007-04-24-VolatileStructCopy.c @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s +// PR1352 + +struct foo { + int x; +}; + +void copy(volatile struct foo *p, struct foo *q) { + // CHECK: call void @llvm.memcpy + *p = *q; +} |