brintos

brintos / llvm-project-archived public Read only

0
0
Text · 296 B · 494fc45 Raw
13 lines · cpp
1// RUN: %clang_cc1 -std=c++20 -verify=cxx20,expected %s2// RUN: %clang_cc1 -std=c++23 -verify=cxx23,expected %s3// RUN: %clang_cc1 -std=c++26 -verify=cxx26,expected %s4 5// expected-no-diagnostics6 7namespace GH123524 {8consteval void fn1() {}9void fn2() {10  if constexpr (&fn1 != nullptr) { }11}12}13