llvm-project/clang/test/Misc/constexpr-subobj-init-source-ranges.cpp
Timm Baeder 208584d91a
[clang][bytecode] Fix source range of uncalled base dtor (#111683)
Make this emit the same source range as the current interpreter.
2024-10-09 20:00:33 +02:00

13 lines
450 B
C++

// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info %s 2>&1 | FileCheck %s --strict-whitespace
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info -fexperimental-new-constant-interpreter %s 2>&1 | FileCheck %s --strict-whitespace
struct DelBase {
constexpr DelBase() = delete;
};
// CHECK: :{[[@LINE+1]]:21-[[@LINE+1]]:28}
struct Foo : public DelBase {
constexpr Foo() {};
};
constexpr Foo f;