mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-24 18:20:38 +00:00
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:
parent
f6eac2dd3b
commit
13cf19dff0
@ -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.
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user