clang-1/test/SemaCXX/static-initializers.cpp

13 строки
123 B
C++

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