// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone -O0 \
// RUN: -emit-llvm -fexperimental-assignment-tracking=forced %s -o - \
+// RUN: -disable-O0-optnone \
// RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
// Based on llvm/test/DebugInfo/Generic/track-assignments.ll - check that using
//// Disabled at O0 unless forced.
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone \
// RUN: -emit-llvm %s -o - -fexperimental-assignment-tracking=enabled \
-// RUN: -O0 \
+// RUN: -O0 -disable-O0-optnone \
// RUN: | FileCheck %s --check-prefixes=DISABLE
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone \
// RUN: -emit-llvm %s -o - -fexperimental-assignment-tracking=forced \
-// RUN: -O0 \
+// RUN: -O0 -disable-O0-optnone \
// RUN: | FileCheck %s --check-prefixes=ENABLE
//// Disabled for LTO and thinLTO unless forced.
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone -O0 \
// RUN: -emit-llvm -fexperimental-assignment-tracking=forced %s -o - \
+// RUN: -disable-O0-optnone \
// RUN: | FileCheck %s
// Check that the (debug) codegen looks right with assignment tracking
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone -O0 \
// RUN: -emit-llvm -fexperimental-assignment-tracking=forced %s -o - \
+// RUN: -disable-O0-optnone \
// RUN: | FileCheck %s
// Check that dbg.assign intrinsics get a !dbg with with the same scope as