[llvm-commits] [llvm] r43932 - /llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c
Duncan Sands
baldrick at free.fr
Thu Nov 8 23:47:30 PST 2007
Author: baldrick
Date: Fri Nov 9 01:47:29 2007
New Revision: 43932
URL: http://llvm.org/viewvc/llvm-project?rev=43932&view=rev
Log:
Check that the first and third characters, s and u,
are accessed with an alignment of 2 not 1.
Added:
llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c
Added: llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c?rev=43932&view=auto
==============================================================================
--- llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c (added)
+++ llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c Fri Nov 9 01:47:29 2007
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc -S %s -o - | grep "align 2" | count 6
+struct A { char s, t, u, v; short a; };
+void q() { struct A a, b; a = b; }
More information about the llvm-commits
mailing list