brintos

brintos / llvm-project-archived public Read only

0
0
Text · 428 B · 0dd583c Raw
23 lines · cpp
1// RUN: %clang_cc1 -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both %s2// RUN: %clang_cc1 -std=c++2c  -verify=ref,both %s3 4// both-no-diagnostics5 6namespace std {7constexpr int8midpoint(int __a, int ) {9  constexpr unsigned  __half_diff = 0;10  return __half_diff;11}12}13struct Tuple {14  int min;15  int mid;16  constexpr Tuple() {17    min = 0;18    mid = std::midpoint(min, min);19  }20};21constexpr Tuple tup;22 23