From ca9976d6fea556430cdb1dd92dc69f0fc257ea96 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 26 Sep 2007 04:04:29 +0000 Subject: [PATCH] Test that local variables are aligned as the user requested. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42338 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2007-09-26-Alignment.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/CFrontend/2007-09-26-Alignment.c diff --git a/test/CFrontend/2007-09-26-Alignment.c b/test/CFrontend/2007-09-26-Alignment.c new file mode 100644 index 00000000000..1638fed0587 --- /dev/null +++ b/test/CFrontend/2007-09-26-Alignment.c @@ -0,0 +1,7 @@ +// RUN: %llvmgcc -S %s -o - | grep {align 16} +extern p(int *); +int q(void) { + int x __attribute__ ((aligned (16))); + p(&x); + return x; +} -- 2.34.1