summaryrefslogtreecommitdiff
path: root/offload/test/offloading/bug51982.c
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-08-13 11:23:55 -0500
committerGitHub <noreply@github.com>2024-08-13 11:23:55 -0500
commitdcc27ea41ebc7244a10f15114f60f5e8d6b93b34 (patch)
tree9dc9e38fe6aacb4bb91a233f4d90b6660fad7d1c /offload/test/offloading/bug51982.c
parentafd42fb3038904e8c09c0fb735e713bc052ec0e4 (diff)
[LinkerWrapper] Always pass `-flto` if the linker supports it (#102972)
Summary; Now that we use the linker to do LTO / device linking, we need to inform the `clang` invocation to use `-flto` so it forwards arguments like `-On` correctly.
Diffstat (limited to 'offload/test/offloading/bug51982.c')
-rw-r--r--offload/test/offloading/bug51982.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/offload/test/offloading/bug51982.c b/offload/test/offloading/bug51982.c
index 91ce4a264e23..b19707aacde9 100644
--- a/offload/test/offloading/bug51982.c
+++ b/offload/test/offloading/bug51982.c
@@ -1,6 +1,6 @@
-// RUN: %libomptarget-compile-generic -O1 && %libomptarget-run-generic
-// -O1 to run openmp-opt
-// RUN: %libomptarget-compileopt-generic -O1 && %libomptarget-run-generic
+// RUN: %libomptarget-compile-generic -O2 && %libomptarget-run-generic
+// -O2 to run openmp-opt
+// RUN: %libomptarget-compileopt-generic -O2 && %libomptarget-run-generic
int main(void) {
long int aa = 0;