hanchenye-llvm-project/clang/test/SemaCXX/static-initializers.cpp

13 lines
123 B
C++

// RUN: clang-cc -fsyntax-only -verify %s
int f()
{
return 10;
}
void g()
{
static int a = f();
}
static int b = f();