aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/constexpr-if.cpp
blob: 494fc45c55c4e07947c28f9d063311dd634cd944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -std=c++20 -verify=cxx20,expected %s
// RUN: %clang_cc1 -std=c++23 -verify=cxx23,expected %s
// RUN: %clang_cc1 -std=c++26 -verify=cxx26,expected %s

// expected-no-diagnostics

namespace GH123524 {
consteval void fn1() {}
void fn2() {
  if constexpr (&fn1 != nullptr) { }
}
}