view clang/test/CodeGen/vla-3.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
line wrap: on
line source

// RUN: %clang_cc1 -std=gnu99 %s -emit-llvm -o - | FileCheck %s
// CHECK: alloca {{.*}}, align 16

void adr(char *);

void vlaalign(int size)
{
    char __attribute__((aligned(16))) tmp[size+32];
    char tmp2[size+16];

    adr(tmp);
}