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

11 lines
125 B
C++
Raw Normal View History

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