Skip to content

Commit bd03805

Browse files
committed
work
1 parent 62a68a2 commit bd03805

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/unit/constexpr_function.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ struct P {
4343
};
4444

4545
int main() {
46+
bool runtime_context = in_constant_context();
47+
assert(!runtime_context);
4648
int arr[2] = {7, 8};
4749
assert(first(arr) == 7);
4850
assert(first(arr + 1) == 8);

0 commit comments

Comments
 (0)