aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ByteCode/libcxx/global-decl-id.cpp
blob: 0dd583c3d467fb34303c3f8e0120ffae53da97db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: %clang_cc1 -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both %s
// RUN: %clang_cc1 -std=c++2c  -verify=ref,both %s

// both-no-diagnostics

namespace std {
constexpr int
midpoint(int __a, int ) {
  constexpr unsigned  __half_diff = 0;
  return __half_diff;
}
}
struct Tuple {
  int min;
  int mid;
  constexpr Tuple() {
    min = 0;
    mid = std::midpoint(min, min);
  }
};
constexpr Tuple tup;