aboutsummaryrefslogtreecommitdiff
path: root/cross-project-tests
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2022-10-26 20:57:49 +0000
committerGuozhi Wei <carrot@google.com>2022-10-26 20:57:49 +0000
commite5244706ec6af04d3ac07e84a52782d6d172f663 (patch)
treebae6a5bb5c5fc61a89acc55c7c9a35e44b8f203b /cross-project-tests
parent1aad641c793090b4d036c03e737df2ebe2c32c57 (diff)
downloadllvm-e5244706ec6af04d3ac07e84a52782d6d172f663.zip
llvm-e5244706ec6af04d3ac07e84a52782d6d172f663.tar.gz
llvm-e5244706ec6af04d3ac07e84a52782d6d172f663.tar.bz2
[dexter-tests] Add attribute optnone to main function
The test case optnone-simple-functions.cpp is expected to be compiled unoptimized even under -O2 because of attribute optnone. But this attribute is missed for main function, and caused the fail in https://lab.llvm.org/buildbot/#/builders/217/builds/14046 when it triggered optimizations. This patch fixes that by adding attribute optnone to main function. Differential Revision: https://reviews.llvm.org/D136778
Diffstat (limited to 'cross-project-tests')
-rw-r--r--cross-project-tests/debuginfo-tests/dexter-tests/optnone-simple-functions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cross-project-tests/debuginfo-tests/dexter-tests/optnone-simple-functions.cpp b/cross-project-tests/debuginfo-tests/dexter-tests/optnone-simple-functions.cpp
index fa086b9..83a655b 100644
--- a/cross-project-tests/debuginfo-tests/dexter-tests/optnone-simple-functions.cpp
+++ b/cross-project-tests/debuginfo-tests/dexter-tests/optnone-simple-functions.cpp
@@ -90,6 +90,7 @@ int test5(int test5_val) {
// DexExpectWatchValue('test5_val', 7, from_line=ref('test5_start'), to_line=ref('test5_end'))
// DexExpectWatchValue('c', 1, 5, from_line=ref('test5_start'), to_line=ref('test5_end'))
+__attribute__((optnone))
int main() {
int main_result = 0;
// DexLabel('main_start')