[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / stack-usage.c
blobf7dc486c500586b2d7e657ca8ac563dc5243a877
1 // REQUIRES: aarch64-registered-target
3 // RUN: rm -rf %t && mkdir %t && cd %t
4 // RUN: %clang_cc1 -triple aarch64-unknown -stack-usage-file b.su -emit-obj %s -o b.o
5 // RUN: FileCheck %s < b.su
7 // CHECK: stack-usage.c:[[#@LINE+1]]:foo {{[0-9]+}} static
8 int foo() {
9 char a[8];
11 return 0;
14 // CHECK: stack-usage.c:[[#@LINE+1]]:bar {{[0-9]+}} dynamic
15 int bar(int len) {
16 char a[len];
18 return 1;