aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-10-26 23:43:35 +0000
committerBill Wendling <isanbard@gmail.com>2007-10-26 23:43:35 +0000
commit318d3ae39776c30bd6c4438fd240b8f34a89046b (patch)
treea7af23cacd4b5f173797cb790073af1fe1270b12 /test/CFrontend
parent168a66b21e71e4c3301c9d4152d4c683a4bef889 (diff)
downloadexternal_llvm-318d3ae39776c30bd6c4438fd240b8f34a89046b.zip
external_llvm-318d3ae39776c30bd6c4438fd240b8f34a89046b.tar.gz
external_llvm-318d3ae39776c30bd6c4438fd240b8f34a89046b.tar.bz2
Test to make sure that if we have an unaligned memcpy, it will still compile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/unaligned-memcpy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CFrontend/unaligned-memcpy.c b/test/CFrontend/unaligned-memcpy.c
new file mode 100644
index 0000000..e5d810f
--- /dev/null
+++ b/test/CFrontend/unaligned-memcpy.c
@@ -0,0 +1,5 @@
+// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llc
+
+void bork() {
+ char Qux[33] = {0};
+}