// RUN: %llvmgcc -std=gnu99 %s -S -o - | grep ".*alloca.*align 16"

extern void bar(int[]);

void foo(int a)
{
  int var[a] __attribute__((__aligned__(16)));
  bar(var);
  return;
}

// RUN: %llvmgcc -std=gnu99 %s -S -o - | grep ".*alloca.*align 32"

extern void bar(int[]);

void foo(int a)
{
  int var[a] __attribute__((__aligned__(32)));
  bar(var);
  return;
}

--- 
+++ 
@@ -1,10 +1,10 @@
-// RUN: %llvmgcc -std=gnu99 %s -S -o - | grep ".*alloca.*align 32"
+// RUN: %llvmgcc -std=gnu99 %s -S -o - | grep ".*alloca.*align 16"
 
 extern void bar(int[]);
 
 void foo(int a)
 {
-  int var[a] __attribute__((__aligned__(32)));
+  int var[a] __attribute__((__aligned__(16)));
   bar(var);
   return;
 }
Update this to use a "valid" alignment.


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@108985 91177308-0d34-0410-b5e6-96231b3b80d8
