aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Misc/constexpr-subobj-init-source-ranges.cpp
blob: 990d1056d6d46ef5e68a1cf02c23359b8741f799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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;