Ensure there is stack usage in stack size warning test

r359906 broke this because the only stack usage was from a spill which
can be avoided since the only block is a return.

llvm-svn: 359918
This commit is contained in:
Matt Arsenault 2019-05-03 19:04:14 +00:00
parent f6eac2dd3b
commit 13cf19dff0

View File

@ -14,5 +14,7 @@ namespace frameSizeThunkWarning {
// CHECK: warning: stack frame size of {{[0-9]+}} bytes in function 'frameSizeThunkWarning::B::f'
// CHECK: warning: stack size limit exceeded ({{[0-9]+}}) in {{[^ ]+}}
void B::f() { }
void B::f() {
volatile int x = 0; // Ensure there is stack usage.
}
}