[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / AST / ByteCode / cxx26.cpp
blob0b0e2b21e8201e76881abaa192e91708bf8ed83f
1 // RUN: %clang_cc1 -std=c++26 -fsyntax-only -fcxx-exceptions -verify=ref,both %s
2 // RUN: %clang_cc1 -std=c++26 -fsyntax-only -fcxx-exceptions -verify=expected,both %s -fexperimental-new-constant-interpreter
4 // both-no-diagnostics
6 namespace VoidCast {
7 constexpr void* p = nullptr;
8 constexpr int* q = static_cast<int*>(p);
9 static_assert(q == nullptr);