llvm-project/clang/test/Misc/backend-resource-limit-diagnostics.cl
Fangrui Song f53d791520 Improve the diagnostic of DiagnosticInfoResourceLimit (and warn-stack-size in particular)
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
2021-06-22 09:55:20 -07:00

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;
}