Debian Codegraph @

clang/test/AST/ByteCode/libcxx/global-decl-id.cpp

raw
1 // RUN: %clang_cc1 -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both %s
2 // RUN: %clang_cc1 -std=c++2c -verify=ref,both %s
3
4 // both-no-diagnostics
5
6 namespace std {
7 constexpr int
8 midpoint(int __a, int ) {
9 constexpr unsigned __half_diff = 0;
10 return __half_diff;
11 }
12 }
13 struct Tuple {
14 int min;
15 int mid;
16 constexpr Tuple() {
17 min = 0;
18 mid = std::midpoint(min, min);
19 }
20 };
21 constexpr Tuple tup;
22