llvm-project/clang/test/SemaCXX/cxx20-constinit.cpp

5 lines
112 B
C++

// RUN: %clang_cc1 %s -std=c++20 -verify
// expected-no-diagnostics
constinit int a __attribute__((weak)) = 0;