1// REQUIRES: amdgpu-registered-target
2// RUN: not %clang_cc1 -emit-codegen-only -triple=amdgcn-- %s 2>&1 | FileCheck %s
3
4// CHECK: error: local memory limit exceeded (480000) in use_huge_lds
5kernel void use_huge_lds()
6{
7    volatile local int huge[120000];
8    huge[0] = 2;
9}
10