diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-05-03 19:04:14 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-05-03 19:04:14 +0000 |
| commit | 13cf19dff098bf89216a14eee0314afd850278a2 (patch) | |
| tree | 4e0134a1dba4c7c5de73e437f63f39acc3e22b18 | |
| parent | f6eac2dd3b3adec4ea9f31316282d11354cf2f4a (diff) | |
| download | bcm5719-llvm-13cf19dff098bf89216a14eee0314afd850278a2.tar.gz bcm5719-llvm-13cf19dff098bf89216a14eee0314afd850278a2.zip | |
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
| -rw-r--r-- | clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp b/clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp index 8ae8c55396d..332dd22fecb 100644 --- a/clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp +++ b/clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp @@ -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. + } } |

