xref: /llvm-project/clang/test/Misc/constexpr-subobj-init-source-ranges.cpp (revision 208584d91ae138d752d89436e3df12fa8f2e60a8)
1 // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info %s 2>&1 | FileCheck %s --strict-whitespace
2 // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info -fexperimental-new-constant-interpreter %s 2>&1 | FileCheck %s --strict-whitespace
3 
4 struct DelBase {
5   constexpr DelBase() = delete;
6 };
7 
8 // CHECK:      :{[[@LINE+1]]:21-[[@LINE+1]]:28}
9 struct Foo : public DelBase {
10   constexpr Foo() {};
11 };
12 constexpr Foo f;
13