[llvm-commits] [llvm] r43931 - /llvm/trunk/test/CFrontend/2007-11-07-ZeroAggregateAlign.c
Duncan Sands
baldrick at free.fr
Thu Nov 8 23:46:03 PST 2007
Author: baldrick
Date: Fri Nov 9 01:46:02 2007
New Revision: 43931
URL: http://llvm.org/viewvc/llvm-project?rev=43931&view=rev
Log:
Check that accesses to the second short, t, have
an alignment of 2 rather than 4.
Added:
llvm/trunk/test/CFrontend/2007-11-07-ZeroAggregateAlign.c
Added: llvm/trunk/test/CFrontend/2007-11-07-ZeroAggregateAlign.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2007-11-07-ZeroAggregateAlign.c?rev=43931&view=auto
==============================================================================
--- llvm/trunk/test/CFrontend/2007-11-07-ZeroAggregateAlign.c (added)
+++ llvm/trunk/test/CFrontend/2007-11-07-ZeroAggregateAlign.c Fri Nov 9 01:46:02 2007
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc -S %s -o - | grep "align 2"
+struct A { short s; short t; int i; };
+void q() { struct A a = {0}; }
More information about the llvm-commits
mailing list