mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 18:56:06 +00:00

Before: `warning: stack size limit exceeded (888) in main` After: `warning: stack frame size (888) exceeds limit (100) in function 'main'` (the -Wframe-larger-than limit will be mentioned) Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D104667
10 lines
286 B
Common Lisp
10 lines
286 B
Common Lisp
// REQUIRES: amdgpu-registered-target
|
|
// RUN: not %clang_cc1 -emit-codegen-only -triple=amdgcn-- %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK: error: local memory (480000) exceeds limit in function 'use_huge_lds'
|
|
kernel void use_huge_lds()
|
|
{
|
|
volatile local int huge[120000];
|
|
huge[0] = 2;
|
|
}
|